FastLED 3.9.3
|
Functions to convert between floating point and fixed point types.
Functions | |
LIB8STATIC float | sfract15ToFloat (sfract15 y) |
Conversion from 16-bit fixed point (sfract15) to IEEE754 32-bit float. | |
LIB8STATIC sfract15 | floatToSfract15 (float f) |
Conversion from IEEE754 float in the range (-1,1) to 16-bit fixed point (sfract15). | |
LIB8STATIC sfract15 floatToSfract15 | ( | float | f | ) |
Conversion from IEEE754 float in the range (-1,1) to 16-bit fixed point (sfract15).
Definition at line 406 of file lib8tion.h.
LIB8STATIC float sfract15ToFloat | ( | sfract15 | y | ) |
Conversion from 16-bit fixed point (sfract15) to IEEE754 32-bit float.
Definition at line 398 of file lib8tion.h.