Jump to navigation

Class: TNum


new TNum(num)

Number type.

The precisionType and precision properties are optional. If given, they describe the precision to which the number is known.

Name Type Description
num number
Name Type Description
value number
originalValue string | number | complex

The value used to construct the token - either a string, a number, or a complex number object.

precisionType string

The type of precision of the value; either "dp" or "sigfig".

precision number

The number of digits of precision in the number.

type string