DoubleToBytes function

Byte representation of a double typed variable

Byte representation of a double typed variable

This function returns a vector of byte values with the length of sizeof(double) for a given double typed value

DoubleToBytes(x)

Arguments

  • x: A double typed value

Returns

A vector of byte values with the length of sizeof(double) for a given double typed value

Examples

print(DoubleToBytes(56.43))

Author(s)

Mehmet Hakan Satman - mhsatman@istanbul.edu.tr

See Also

DoubleVectorToBytes

BytesToDouble

ByteVectorToDoubles

  • Maintainer: Mehmet Hakan Satman
  • License: GPL (>= 2)
  • Last published: 2023-11-27

Useful links