Floating Point Math
Posted: Sat Jul 20, 2019 9:56 am
Hi, trying to compare 2 floating point numbers to generate an on/off output
byte = float_eq(float, float) Compares two floating point numbers to see if they are equal
byte = float_ge(float, float) Compares two floating point numbers to see if they are greater then or equal
byte = float_gt(float, float) Compares two floating point numbers to see if they are greater then
byte = float_le(float, float) Compares two floating point numbers to see if they are less then or equal
byte = float_lt(float, float) Compares two floating point numbers to see if they are less the
Seem to be battling with the syntax, byte 0 - 255? So if they are equal for example is the byte output 255 and if unequal, byte output 0?
byte = float_eq(float, float) Compares two floating point numbers to see if they are equal
byte = float_ge(float, float) Compares two floating point numbers to see if they are greater then or equal
byte = float_gt(float, float) Compares two floating point numbers to see if they are greater then
byte = float_le(float, float) Compares two floating point numbers to see if they are less then or equal
byte = float_lt(float, float) Compares two floating point numbers to see if they are less the
Seem to be battling with the syntax, byte 0 - 255? So if they are equal for example is the byte output 255 and if unequal, byte output 0?