BytesToDouble function

Converting sizeof(double) bytes to a double value

Converting sizeof(double) bytes to a double value

This function converts sizeof(double) bytes to a double typed value

BytesToDouble(x)

Arguments

  • x: A vector of bytes (unsigned chars in C++)

Returns

Corresponding double typed value for a given vector of bytes

Examples

print(BytesToDouble(DoubleToBytes(56.43)))

Author(s)

Mehmet Hakan Satman - mhsatman@istanbul.edu.tr

See Also

DoubleVectorToBytes

DoubleToBytes

ByteVectorToDoubles

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

Useful links