EncodeDouble

Encode a double using the IEEE 754 binary64 format.

Synopsis

Declared in <util/serfloat.h>

uint64_t
EncodeDouble(double f) noexcept;

Description

All NaNs are encoded as x86/ARM's positive quiet NaN with payload 0.

Return Value

The 64-bit representation of f in IEEE 754 binary64 format.

Parameters

NameDescription
fThe double-precision value to encode.