The Number type represents a number between -(263 - 1) and 263 - 1. Numbers are implemented as double-precision 64-bit binary format IEEE 754 compliant numbers. In addition to the normal range, there are three additional special values:
Not a Number.
Note that there is no explicit integer type in Waltz. When a parameter expects an integer value, the decimal places of the number are simply ignored, so
There is no need to explicitly construct a Number, nor is there an explicit constructor. Assigning a literal numeric value is enough to create a Number. It is, however, important to note that there are several different ways to express a literal number:
|Method||Literal Expressiosn||Actual Values (in Base 10)|
A number can be between -(263 - 1) and 263 - 1. Keep in mind that the inherent precision of numbers decreases the further from
0 they are until you exceed the normal range, at which point there is not precision and the number has been either
The Number type exists both in Waltz's native context as well as in its Script Expressions. Internally Waltz refers to Numbers as Doubles in reference to their double-precision nature. Numbers are sometimes converted to integers with no decimal places when decimal precision would otherwise make no sense, like when referring to port with a RemoteAddress/IP.
|Primitives||Boolean · Number · String|
|Objects||Color · Dimension · DmxMultiverse · DmxUniverse · LocalInterface · Material · Point · RemoteAddress/IP · Scene · Time · Touch|
|Node Specific||NdiSource · WoControlCue · WoHitTestResult · WoTimeline|
|Collections||List · List of Lists · Map · Varargs|
|Special||Any · Consumer · Expression · Null · Void|