Code: Select all
retour$ = "25.8"
retour_1$ = "3"
Debug ValF( retour$ )
Debug ValD( retour$ )
Debug ValF( retour$ ) / ValF( retour_1$ )
Debug ValD( retour$ ) / ValD( retour_1$ )
Here, i have 8.5999999999999996
how to make it working correctly ?
Code: Select all
retour$ = "25.8"
retour_1$ = "3"
Debug ValF( retour$ )
Debug ValD( retour$ )
Debug ValF( retour$ ) / ValF( retour_1$ )
Debug ValD( retour$ ) / ValD( retour_1$ )
Code: Select all
retour$ = "25.8"
retour_1$ = "3"
Debug StrD(ValD(retour$), 2)
Debug StrD(ValD(retour$) / ValD(retour_1$), 2)
By not using floating point arithmetic.supercdfr wrote:how to make it working correctly ?
That's nice !DarkDragon wrote: http://floating-point-gui.de/