Numbers
Numbers in the Puppet language are normal integers and floating point numbers.
You can work with numbers using arithmetic operators.
Numbers are written without quotation marks, and can consist only of:
Digits.
An optional negative sign (
-). This is actually the unary negation operator rather than part of the number. Explicit positive signs (+) aren’t allowed.An optional decimal point, which results in a floating point value.
An optional
eorEfor scientific notation of floating point values.An
0prefix for octal base, or0xor0Xprefix hexidecimal base.
In this section: