Namespace: PP;
NumberFormat
The NumberFormat class provides methods used to work with numeric data.
PP.initClass(PP.NumberFormat, PP.Object, "PP.NumberFormat");
| Constructor name | Brief description | |
| NumberFormat | The NumberFormat constructor creates an instance of the NumberFormat class. |
| Method name | Brief description | |
| format | The format method returns string view of a number. | |
| formatTableValue | The formatTableValue method returns string view of a value with thousand separator " " or decimal separator ",". |
| Method name | Brief description | |
| beautify | The beautify static method returns the number in readable form. | |
| maskFormat | The maskFormat static method returns the number formatted according to the specified mask. | |
| tryRound | The tryRound method rounds fractional numbers. |
| Property name | Brief description | |
| Data | The Data property associates a random object with this component. | |
| Id | The Id property sets component identifier. | |
| Settings | The Settings property sets component parameters. |
| Method name | Brief description | |
| clone | The clone method creates a copy of object. It is not implemented in PP.Ui.Control. | |
| dispose | The dispose method deletes the component. | |
| getTypeName | The getTypeName method returns the name of the object type without the namespace, to which it belongs. |
See also: