Jump to navigation

Class: TNum

Numbas.jme.types.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.

Parameters:
Name Type Description
num number
Properties:
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

"number"

Source: