Learn R Programming

mcga (version 3.0.7)

BytesToDouble: Converting sizeof(double) bytes to a double value

Description

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

Usage

BytesToDouble(x)

Value

Corresponding double typed value for a given vector of bytes

Arguments

x

A vector of bytes (unsigned chars in C++)

Author

Mehmet Hakan Satman - mhsatman@istanbul.edu.tr

See Also

DoubleVectorToBytes

DoubleToBytes

ByteVectorToDoubles

Examples

Run this code
print(BytesToDouble(DoubleToBytes(56.43)))

Run the code above in your browser using DataLab