Numbers in Jaf are 64-bit floating point values. They can be integers or decimals.
42 # integer 3.14 # floating point -10 # negative 1e6 # scientific notation (1,000,000) 2.5e-3 # scientific notation (0.0025)
x = 42 y = 3.14 z = -10 print(x) print(y) print(z) # Output: # 42 # 3.14 # -10
big = 1e6 small = 2.5e-3 print(big) print(small) # Output: # 1000000 # 0.0025
a = 10 b = 3.5 print(a + b) # 13.5 print(a - b) # 6.5 print(a * b) # 35 print(a / b) # 2.857142857142857
print(5 > 3) # 1 (true) print(5 == 5) # 1 (true) print(3.14 < 2) # 0 (false)
© 2026 elliktronic · Jaf Language