Author Topic: Can't find the appropriate type  (Read 2022 times)

0 Members and 1 Guest are viewing this topic.

kryton9

  • Guest
Can't find the appropriate type
« 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
  1. unsigned ext x = 18446744073709551615
  2. print x
  3.  

Peter

  • Guest
Re: Can't find the appropriate type
« Reply #1 on: June 27, 2011, 05:39:17 AM »
Hi Kent,

mov  rax,18446744073709551615
Print "stored"

 

kryton9

  • Guest
Re: Can't find the appropriate type
« Reply #2 on: June 27, 2011, 01:26:25 PM »
Thanks Peter. But I was looking for a built in Oxygen type for that.

Charles Pegge

  • Guest
Re: Can't find the appropriate type
« Reply #3 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.

Charles