Do you also get the number 5 instead of the expected 6 as a result of
Code: Select all
msgdebug( INT( ( 129.6 - 129 ) * 10 ) )
Edward.
Moderator: Rathinagiri
Code: Select all
msgdebug( INT( ( 129.6 - 129 ) * 10 ) )
this is a problem with the binary format of floating point numbers: https://harbour.github.io/the-oasis/clipper-5.html
Code: Select all
msgdebug( INT( ( 129.6 - 129 ) * 10 ) ) vs. msgdebug( INT( 129.6*10 - 129*10 ) )