Manuals/calci/NUMBER

Revision as of 02:22, 2 March 2020 by Devika (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
NUMBER(Thing)


  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 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

  1. NUMBER("65") = 65
  2. NUMBER("Hello") = null
  3. NUMBER("-32") = -32

See Also

References