IEEE 754 Converter (Float question)
chenguanyann
Posts: 15
I know the Calculation process of IEEE754 <---> float
But I try to use float object like FloatMath, Float32Full...etc
I can't calculate like is question on propoller chip...
0.75*3.125 (but 0.25/0.01 is OK)
How could I to do it?
But I try to use float object like FloatMath, Float32Full...etc
I can't calculate like is question on propoller chip...
0.75*3.125 (but 0.25/0.01 is OK)
How could I to do it?
Comments
OBJ flt : "Float32Full"
.....
C := flt.fadd( A,
If you want to multiply a floating point value D by the constant 3.125 and put the result into C, you'd write:
C := flt.fmul( 3.125, D )
There are other examples in the documentation for the floating point objects.