blockly > FieldNumber > getPrecision

FieldNumber.getPrecision() method

Returns the current precision of this field. The precision being the number to which the field's value is rounded. A precision of 0 means that the value is not rounded.

Signature:

getPrecision(): number;

Returns:

number

The number to which this field's value is rounded.