NumberFormat

Namespace: PP;

Inheritance hierarchy

Object

NumberFormat

Description

The NumberFormat class provides methods used to work with numeric data.

Syntax

PP.initClass(PP.NumberFormat, PP.Object, "PP.NumberFormat");

Constructor

  Constructor name Brief description
NumberFormat The NumberFormat constructor creates an instance of the NumberFormat class.

Methods

  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 ",".

Static methods

  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.

Properties inherited from the Object class

  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.

Methods inherited from the Object class

  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:

PP