Literals/Integer: Difference between revisions
Content deleted Content added
added Befunge |
|||
Line 581:
=={{header|Ursala}}==
Natural numbers (i.e., unsigned integers) of any size are supported. Only decimal integer literals are recognized by the compiler, as in a declaration such as the following.
<lang Ursala>n = 724</lang>
Signed integers are also recognized and are considered a separate type from natural numbers, but non-negative integers and natural numbers have compatible binary representations.
Signed rational numbers of unlimited precision are also a primitive type▼
<lang Ursala>z = -35</lang>
▲Signed rational numbers of unlimited precision are
in conventional decimal form.
<lang Ursala>m = -2/3</lang>
The forward slash in a rational literal is part of the syntax and not a division operator. Finally, a signed or unsigned integer with a trailing underscore, like this
<lang Usala>t = 4534934521_</lang>
is used for numbers stored in binary converted decimal format, also with unlimited precision, which may perform better in applications involving very large decimal numbers.
|