Re: power(2,63) is not equal to 9223372036854775808

new topic     » goto parent     » topic index » view thread      » older message » newer message

Even more interesting

print(1,  power(2,63) - 1 = 9223372036854775807) 
puts(1,"\n") 
print(1,  power(2,63) = 9223372036854775808) 
puts(1,"\n") 
print(1,  power(2,63) + 1 = 9223372036854775809) 
puts(1,"\n") 
print(1,  power(2,63) + 2 = 9223372036854775810) 

>eui bug.ex 
1 
0 
0 
1 

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu