mIRC Home    About    Download    Register    News    Help

Print Thread
#53747 11/10/03 04:37 PM
Joined: Oct 2003
Posts: 1
J
JBS Offline OP
Mostly harmless
OP Offline
Mostly harmless
J
Joined: Oct 2003
Posts: 1
//say $calc(2^63)

version 6.11 ... 9223372036854775800 ... wrong
version 6.1 ..... 9223372036854775800 ... wrong
version 6.03 ... 9223372036854775808 ... ok

#53748 11/10/03 05:04 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Yup I can confirm that. Seems like a bug to me.

#53749 11/10/03 09:03 PM
Joined: Jun 2003
Posts: 47
J
Ameglian cow
Offline
Ameglian cow
J
Joined: Jun 2003
Posts: 47
me too same error

#53750 12/10/03 12:21 AM
Joined: May 2003
Posts: 161
A
Vogon poet
Offline
Vogon poet
A
Joined: May 2003
Posts: 161
visual C's printf() works a bit differently than borlands. It only shows the first 17 digits, since thats as much accuracy as floating point numbers have anyway.

both numbers actually evaluate to the same double (00 00 00 00 00 00 E0 43) so it will have no effect on calculations.

Last edited by Ashkrynt; 12/10/03 12:21 AM.
#53751 12/10/03 12:27 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Well, that doesn't matter. If VC's printf() doesn't work properly, then that means Khaled just has to either implement his own, or find someone who implemented it correctly. You're right, it will work fine for calculations, but in the event you need to display it to a user, it won't.


Link Copied to Clipboard