Number object wrapper to work with numerical values.
Number object contains the
toFixed([digits]) method that can be used to display numbers; here the
digits parameter can have a value between 0 and 20. The number will either get rounded automatically if needed, or the number will get padded with additional zeros if necessary. Ok, so let's see it in action.
Perform the following steps do demonstrate working with the
Number object: ...