Contents

Roo

The Number data type

Numbers are represented internally by Roo as double precision numbers. Number literals can be prefixed by an optional - sign to denote negativity. Below are examples of valid numbers:

10
-30
1.99
-28.54
2e4 # => 20000
2.3e3 # => 2300
3e-3 # => 0.003

Comprehensive documentation of the Number object’s getters can be found in the Number section.