Difference between revisions of "Manuals/calci/NUMBER"
Jump to navigation
Jump to search
(Created page with "<div style="font-size:30px">'''NUMBER(Thing)'''</div><br/> *<math>Thing</math> is any number. ==Description== *This function gives it as Number object. *The primary uses of t...") |
(No difference)
|
Latest revision as of 03:22, 2 March 2020
NUMBER(Thing)
- is any number.
Description
- This function gives it as Number object.
- The primary uses of the Number object are:
- If the argument cannot be converted into a number, it returns NaN.
- In a non-constructor context (i.e., without the new operator), Number can be used to perform a type conversion.
Examples
- NUMBER("65") = 65
- NUMBER("Hello") = null
- NUMBER("-32") = -32