Number Type

QuantScript's Number type represents integers and floating-point numbers.

Example:

1 num = 42
2 num = 13.37
3 num = 0
4 num = -50
5 num = -99.99

The maximum floating point precision of Number is 8 digits.

Unary Operand Behaviour

Anything not listed here results in an Unknown

OperatorOperandResult
-NumberNumber
isknownNumberBoolean

Binary Operand Behaviour

Anything not listed here results in an Unknown

Left OperandOperatorRight OperandResult
Number+, -, *, /, %, **, //NumberNumber
Number+, -, *, /, %, **, //MultiDataset<Number>MultiDataset<Number>
Number+, -, *, /, %, **, //Series<Number>Series<Number>
Number>, >=, <, <=, ==, !=NumberBoolean
Number>, >=, <, <=, ==, !=MultiDataset<Number>MultiDataset<Boolean>
Number>, >=, <, <=, ==, !=Series<Number>Series<Boolean>
Number[] Time travelAnyNumber
Number() Function callAnyError