Package: | Ext.util |
Defined In: | Number.js |
Class: | Numbers |
Extends: | Object |
Method | Defined By | |
---|---|---|
constrain( Number number , Number min , Number max )
:
NumberChecks whether or not the current number is within a desired range. If the number is already within the
range it is ... Checks whether or not the current number is within a desired range. If the number is already within the
range it is returned, otherwise the min or max value is returned depending on which side of the range is
exceeded. Note that this method returns the constrained value but does not change the current number. Parameters:
| Numbers | |
toFixed( Number value , Number precision )
:
voidFormats a number using fixed-point notation Formats a number using fixed-point notation Parameters:
| Numbers |