blockly > FieldNumber > getPrecision
Metodo FieldNumber.getPrecision()
Restituisce la precisione corrente di questo campo. La precisione corrisponde al numero a cui viene arrotondato il valore del campo. La precisione 0 indica che il valore non viene arrotondato.
Firma:
getPrecision(): number;
Resi:
numero
Il numero a cui viene arrotondato il valore di questo campo.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-09-10 UTC.
[null,null,["Ultimo aggiornamento 2024-09-10 UTC."],[[["The `getPrecision()` method returns the current precision of a FieldNumber, indicating the level of rounding applied to its value."],["A precision of 0 signifies that the FieldNumber's value is not rounded."],["This method helps determine how the FieldNumber handles and displays numerical values with varying degrees of accuracy."]]],["The `getPrecision()` method, part of the `FieldNumber` class, retrieves the current precision of a field. This precision determines the rounding applied to the field's value. A return value of 0 indicates no rounding is performed. The method outputs a number representing the rounding value.\n"]]