When an HOC deals with an actual number, like currency or
percent, this is the component to start with. Generally this is not used
directly in an application but wrapped in a component at a higher level of
abstraction. react-numerics includes HOCs for selected types of formatted
numbers.
To create formatted numbers of the following types:
integer: set decimalPlaces to 0.
positive number: set min to 0 or 1.
decimal: set decimalPlaces to the maximum allowed, will be right padded
with zeroes.
Create a formatted number.
See
FormattedNumericInput for other types of numerics.
Description
When an HOC deals with an actual number, like currency or percent, this is the component to start with. Generally this is not used directly in an application but wrapped in a component at a higher level of abstraction. react-numerics includes HOCs for selected types of formatted numbers.
To create formatted numbers of the following types:
decimalPlaces
to 0.min
to 0 or 1.decimalPlaces
to the maximum allowed, will be right padded with zeroes.