Floating-point math – Echelon Neuron C User Manual
Page 66
46
Functions
Function
Description
s32_rem( )
Return the remainder of a division of
two signed 32-bit numbers
s32_sign( )
Return the sign of a 32-bit signed
number
s32_sub( )
Subtract two signed 32-bit numbers
s32_to_ascii( )
Convert a 32-bit signed number into an
ASCII string
s32_to_slong( )
Convert a 32-bit signed number into
signed long
Floating-Point Math
Table 9 lists the floating-point mathematics functions.
Table 9. Floating-Point Functions
Function
Description
fl_abs( )
Take the absolute value of a floating-
point number
fl_add( )
Add two floating-point numbers
fl_ceil( )
Return the ceiling of a floating-point
number
fl_cmp( )
Compare two floating-point numbers
fl_div( )
Divide two floating-point numbers
fl_div2( )
Divide a floating-point number by two
fl_eq( )
Return TRUE if first argument equals
second argument
fl_floor( )
Return the floor of a floating-point
number
fl_from_ascii( )
Convert an ASCII string to floating-
point
fl_from_s32( )
Convert a signed 32-bit number to a
floating-point number
fl_from_slong( )
Convert a signed long number into a
floating-point number