Welcome! Log In Create A New Profile

Advanced

MAX_BOUND_UNSIGNED_INT_8

Posted by Igor Pobi 
Igor Pobi
MAX_BOUND_UNSIGNED_INT_8
April 26, 2009 12:47PM
Please test this code:


EXTERN "Limites.wl"
info(MAX_BOUND_UNSIGNED_INT_8)


Result is: 9223372036854775807 but in "Limites.wl" is 18446744073709551615

Why ?

Thanks !
Fabrice Harari
Re: MAX_BOUND_UNSIGNED_INT_8
April 26, 2009 08:09PM
Hi Igor...

I'm not sure, but it looks like half the original value, so I'm guessing the following:

- info is supposed to display strings
- you are passing a numeric value to the function, so an automatic conversion is done
- the automatic conversion has to choose a variable type to convert from and chooses a SIGNED value...

In that case, the original encoding matches the max POSITIVE value of an int

Best regards

Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: