types

integer

Whole numbers and the methods available on them.

An integer is a whole number. As a schema field it is written age: integer, and a literal is plain digits, as in 42.

marreta
count = 42
bounded = count.min(100).max(0)

Methods

NameSignatureSummary
integer.absabs()Returns the absolute value.
integer.minmin(other)Returns the smaller value.
integer.maxmax(other)Returns the larger value.
integer.to_stringto_string()Converts to a string.