I'm afraid I have not enough fingers

-----Message d'origine-----
De : ZN [mailto:[EMAIL PROTECTED]]
Envoy� : lundi 18 juin 2001 17:43
� : [EMAIL PROTECTED]
Objet : RE: [ql-users] NEXT in FOR-loop


On 6/18/01 at 3:44 PM Claude Mourier 00 wrote:

>Thank's a lot for all the answers. But this is quite annoying : especially
>because behavior is not the same for PRINT and INT. Better if PRINT
returns
>something like 2.99999 (in fact SMS loves exponential form I personaly
>hate). I'm not sure but I think even FDEC$(n, 9, 8) returns 3.00000.
>
>Claude

No, it's Print. Eventually, you have to print it and that's where the
rounding happens. FDEC$ does an implicit print, so again you cannot escape
rounding. The only way would be to get the actual float representation from
memory as 6 bytes and convert them 'manually'.

Nastan

Reply via email to