Jump to content
toofat

Integer to String

Recommended Posts

toofat

Hi. I just need someone to tell me what am I missing ... please read comments inside code.

$IntegerA = 9876543210123456789
$StringA = String ($IntegerA)
; $StringA returns string 9223372036854775807 (expected string 9876543210123456789)


$IntegerB = 8876543210123456789
$StringB = String ($IntegerB)
; $StringB returns string 8876543210123456789 (returns as expected)

Thank you very much.

Share this post


Link to post
Share on other sites
Bilgus

9223372036854775807

its the largest number that a signed 64 bit integer can hold

in your calculator type 2^63 and you get 9223372036854775807

the last bit holds the sign for - or +

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×