Numbers

Jyro supports integer and floating-point number literals in decimal, hexadecimal, and binary notation.

Decimal Integers

42
-5
0

Floating-Point

3.14
-0.5

Hexadecimal

Prefixed with 0x or 0X. Digits af are case-insensitive.

0xFF
0xff
0x1A3F

Binary

Prefixed with 0b or 0B.

0b1010        # 10 in decimal
0b11111111    # 255 in decimal

Type

All number literals produce values of type number. There is no separate integer type at runtime - integers and floats are both number.


Back to top

Copyright © Mesch Systems 2025-2026. All rights reserved.