Returns a new Number object set to the value of the argument converted to a number.
Object
Number
Wraps a numeric value.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| static | Number = 1.7976931348623158e+308 | readonly | A constant representing the largest representable number. |
| static | Number = 2.2250738585072014e-308 | readonly | A constant representing the smallest representable number. |
| static | Number | readonly | A constant representing negative infinity. |
| static | Number = NaN | readonly | A constant representing the special "Not a Number" value. |
| static | Number | readonly | A constant representing positive infinity. |
Methods
→ Number
value
Varies
The value of the object being created.
→ Number
Converts the Number object to a string in scientific notation.
→ Number
Converts the Number object to a string with fixed decimals.
→ Number
Returns the value of a Number object converted to a string, using localized conventions.
→ Number
Converts the Number object to a string in either scientific or fixed notation, epending on its value.
→ Number
Creates a string representation of this object that can be fed back to eval() to re-create an object. Works only with built-in classes.
→ Number
Returns the value of a Number object converted to a string.
→ Number
Returns the value of a Number object as a primitive number.
Object of 30
Properties elsewhere that hold a Number.
$.flags$.hiresTimer$.level$.line$.memCacheArray.lengthFile.lengthFunction.arityFunction.lengthMath.EMath.LN10Math.LN2Math.LOG10EMath.LOG2EMath.PIMath.SQRT1_2Math.SQRT2Number.MAX_VALUENumber.MIN_VALUENumber.NEGATIVE_INFINITYNumber.NaNNumber.POSITIVE_INFINITYReflectionInfo.maxReflectionInfo.minSocket.timeoutString.lengthUnitValue.valueXML.prettyIndentglobal.Infinityglobal.NaN
Parameter of 63
Method parameters that accept a Number.
$.colorPicker(color)$.evalFile(timeout)$.sleep(msecs)Array.Array(length)Array.push(value)Array.splice(start)Date.Date(year)Date.UTC(year)Date.setDate(date)Date.setFullYear(year)Date.setHours(hour)Date.setMilliseconds(ms)Date.setMinutes(minutes)Date.setMonth(month)Date.setSeconds(seconds)Date.setTime(ms)Date.setUTCDate(date)Date.setUTCFullYear(year)Date.setUTCHours(hours)Date.setUTCMilliseconds(ms)Date.setUTCMinutes(min)Date.setUTCMonth(month)Date.setUTCSeconds(sec)Date.setYear(year)Error.Error(line)File.read(chars)File.seek(pos)Math.abs(x)Math.acos(x)Math.asin(x)Math.atan(x)Math.atan2(y)Math.ceil(x)Math.cos(x)Math.exp(x)Math.floor(x)Math.log(x)Math.max(value1, value2, ...)Math.min(value1, value2, ...)Math.pow(x)Math.round(x)Math.sin(x)Math.sqrt(x)Math.tan(x)Number.toExponential(decimals)Number.toFixed(decimals)Number.toPrecision(decimals)Number.toString(radix)Socket.listen(port)Socket.read(count)String.charAt(index)String.charCodeAt(index)String.fontsize(size)String.fromCharCode(value1)String.indexOf(offset)String.lastIndexOf(offset)String.slice(startSlice)String.split(limit)String.substr(start)String.substring(indexA)global.isFinite(expression)global.isNaN(expression)global.parseInt(base)
Return 75
Methods that return a Number.
$.colorPicker()Array.push()Array.unshift()Date.getDate()Date.getDay()Date.getFullYear()Date.getHours()Date.getMilliseconds()Date.getMinutes()Date.getMonth()Date.getSeconds()Date.getTime()Date.getTimezoneOffset()Date.getUTCDate()Date.getUTCDay()Date.getUTCFullYear()Date.getUTCHours()Date.getUTCMilliseconds()Date.getUTCMinutes()Date.getUTCMonth()Date.getUTCSeconds()Date.getYear()Date.setDate()Date.setFullYear()Date.setHours()Date.setMilliseconds()Date.setMinutes()Date.setMonth()Date.setSeconds()Date.setTime()Date.setUTCDate()Date.setUTCFullYear()Date.setUTCHours()Date.setUTCMilliseconds()Date.setUTCMinutes()Date.setUTCMonth()Date.setUTCSeconds()Date.setYear()Date.valueOf()File.tell()Math.abs()Math.acos()Math.asin()Math.atan()Math.atan2()Math.ceil()Math.cos()Math.exp()Math.floor()Math.log()Math.max()Math.min()Math.pow()Math.random()Math.round()Math.sin()Math.sqrt()Math.tan()Number.Number()Number.toExponential()Number.toFixed()Number.toLocaleString()Number.toPrecision()Number.toSource()Number.toString()Number.valueOf()String.charCodeAt()String.indexOf()String.lastIndexOf()String.localeCompare()String.search()XML.childIndex()XML.length()global.parseFloat()global.parseInt()