| Applying science to business management |
  
Integers
In some programming languages, integers and floating-point
numbers are very different. In DScript, there is no difference at
all. Even if you enter a number without any decimal component,
the number is stored as a floating-point number and all
arithmetic operations are performed as though the number is a
floating point.
There is one exception to this rule. Bitwise operators, such
as Bitwise And and Bitwise Or, convert numbers to
32-bit integers before performing their operations, then convert
the results back to floating point numbers.
Since all integers are converted to floating point numbers, it
is possible that trailing digits for very large numbers will get
lost. DScript can exactly represent integers as large as
±9,007,199,254,740,992 (53-bit).
|