Clear Up
SharpKit Reference

JsNumber Class

An object representation of the number data type and placeholder for numeric constants.

Namespace: SharpKit.JavaScript

Base Types

Base Interfaces

System.IFormattable
System.IEquatable<SharpKit.JavaScript.JsNumber>
System.IComparable<SharpKit.JavaScript.JsNumber>
System.IComparable
System.IConvertible

Constructors

Name Description
JsNumber(double)

Methods

Name Description
Equals(object)
GetHashCode()
toExponential(int) Returns a JsString containing a number represented in exponential notation.
toExponential() Returns a JsString containing a number represented in exponential notation.
toFixed() The toFixed() method formats a number to use a specified number of trailing decimals. The number is rounded up, and nulls are added after the decimal point (if needed), to create the desired decimal length.
toFixed(int) The toFixed() method formats a number to use a specified number of trailing decimals. The number is rounded up, and nulls are added after the decimal point (if needed), to create the desired decimal length.
toPrecision(int) Returns a JsString containing a number represented either in exponential or fixed-point notation with a specified number of digits.
toPrecision() Returns a JsString containing a number represented either in exponential or fixed-point notation with a specified number of digits.
toString() Returns a JsString representation of an object.
toString(int) Returns a JsString representation of an object.
ToString()
valueOf() Returns the primitive value of the specified object.

Fields

Name Description
MAX_VALUE Returns the largest number representable in JScript. Equal to approximately 1.79E+308.
MIN_VALUE Returns the number closest to zero representable in JScript. Equal to approximately 5.00E-324.
NaN A special value that indicates an arithmetic expression returned a value that was not a number.
NEGATIVE_INFINITY Returns a value more negative than the largest negative number.
POSITIVE_INFINITY Returns a value larger than the largest number.
© Copyright 2005-2011 SharpKit. All rights reserved.