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 ) )
![Question :?:](./images/smilies/icon_question.gif)
![Exclamation :!:](./images/smilies/icon_exclaim.gif)
![Shocked :shock:](./images/smilies/icon_eek.gif)
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 ) )