Atomic types / Int (Integer)


Int (Integer)

For integers, i.e. without comma, the type "Int" is mainly used in JM°.

Alternatively, however, "byte", "short" and "long" exist.

Create

An Int object is created directly with a number:

12345

Thus, this is also already an object of type "Int" here:

0

Optionally, a lowercase 'i' can be appended to the number:

123i

Range

With the type "Int" numbers from -2147483648 to 2147483647 can be calculated.



- Powered by OghsWiki -

 

 

Sponsor

The development of "JayMo" is currently only possible through personal initiative.

Received:  0 €