ArchiveBase.floatingPointToData

The archive is responsible for archiving primitive types in the format chosen by Converts the given floating point value to the type used for archiving.

This method is used to convert floating point values, it will convert the floating point value to hexadecimal format.

class ArchiveBase(U)
protected
floatingPointToData
(
T
)
()

Parameters

value T

the value to convert

Return Value

Type: Data

the conveted value

Throws

SerializationException if the conversion failed

Examples

auto f = floatingPointToData(3.15f);
assert(f == "0xc.9999ap-2");

Meta