Skip to main content

swapfloat(value)

Swaps the byte order of a float

Availability

Device + Agent

Parameters

Name Type Description
value Float Any numerical value

Returns

Float

Description

This function takes an 32-bit floating-point value and reverses the byte order of the four bytes in which it is stored in IEEE 754 format. This has the effect of converting the value to and from the byte order required by big-endian and little-endian systems.