Skip to content
Network internalsOverview

RakBitStream.WriteDouble

Represents a double-precision value in a packet stream.

Details#

Appends an IEEE-754 64-bit float in little-endian order to a local stream, using 8 byte(s). This does not transmit the stream. Returns no values; use representable inputs for the selected numeric type.

Examples#

Example

Luau
local stream = raknet.BitStream.new()
stream:WriteDouble(1.5)
print(stream:GetLength()) -- 8