Programming => Problems & Solutions => Topic started by: kryton9 on June 27, 2011, 04:59:05 AM
Title: Can't find the appropriate type
Post by: kryton9 on June 27, 2011, 04:59:05 AM
Charles, I can't find the appropriate variable type to store this number. Here is my test:
Code: OxygenBasic
unsignedext x = 18446744073709551615
print x
Title: Re: Can't find the appropriate type
Post by: Peter on June 27, 2011, 05:39:17 AM
Hi Kent,
mov rax,18446744073709551615 Print "stored"
Title: Re: Can't find the appropriate type
Post by: kryton9 on June 27, 2011, 01:26:25 PM
Thanks Peter. But I was looking for a built in Oxygen type for that.
Title: Re: Can't find the appropriate type
Post by: Charles Pegge on June 27, 2011, 09:14:56 PM
It's the extended type. But there is currently a Double precision limit on literal numbers.
All floating point calcs are done in extended precision on the FPU, even if the variables are singles. The precision is only limited when the value is stored to a variable or pushed onto the stack.