The builtin library consists of a module containing a selection of constants, methods and types that prove most useful in most circumstances. These are always available from any scope in Jam.
const inf:Float
The real number representation for infinity. Use-inf
for negative infinity. Infinity can be the result of the value going outside of the supported range, or a zero division.
const nan:Float
The real number representation for not-a-number. NAN can occur for zero divisions like0/0
.
const true:Bool
A value of1
for the Bool type.
const false:Bool
A value of0
for the Bool type.
const null
A reference representing an object that is nothing. Actually provided by the language rather than the library,null
can be implicitly cast to any nullable type.