Network internalsOverview
RakBitStream.WriteFloat
Represents a single-precision value in a packet stream.
Details#
Appends an IEEE-754 32-bit float in little-endian order to a local stream, using 4 byte(s). This does not transmit the stream. Returns no values; use representable inputs for the selected numeric type.
Examples#
Example
local stream = raknet.BitStream.new()
stream:WriteFloat(1.5)
print(stream:GetLength()) -- 4