Native Number vs. 1.1.0 Full+Lite

The primary purpose of the Number object is to collect properties and methods that are used for the default numeric data type, the Number data type. More details can be found at MSDN or MDN

The NoGray JavaScript Library extends the Number object with additional methods to ease processing numbers.


Function Number.to_int () vs. 1.1.0 Full+Lite
Return an integer out of the number.
Function Number.to_float () vs. 1.1.0 Full+Lite
Return a float out of the number.
Function Number.round (precision) vs. 1.1.0 Full+Lite
Round the number to a given percision.
Function Number.is_numeric () vs. 1.1.0 Full+Lite
This function will return trun unless the number is a NaN
Function Number.percent (percentage) vs. 1.1.0 Full+Lite
Return the percentage amount out of the number.
Function Number.to_json () vs. 1.1.0 FULL ONLY
Return a JSON string out of the number.