Class Number
- Namespace
- CSharpToJavaScript.APIs.JS.Ecma
- Assembly
- CSharpToJavaScript.dll
[To("Default")]
public class Number : NumberPrototype
- Inheritance
-
Number
- Inherited Members
-
Constructors
Number()
Number(double)
public Number(double value)
Parameters
value double
Number(int)
Parameters
value int
Fields
EPSILON
public const double EPSILON = 2.220446049250313E-16
Field Value
- double
MAX_SAFE_INTEGER
public const double MAX_SAFE_INTEGER = 9007199254740991
Field Value
- double
MAX_VALUE
public const double MAX_VALUE = 1.79E+308
Field Value
- double
MIN_SAFE_INTEGER
public const double MIN_SAFE_INTEGER = -9007199254740991
Field Value
- double
MIN_VALUE
public const double MIN_VALUE = 5E-324
Field Value
- double
NEGATIVE_INFINITY
public const double NEGATIVE_INFINITY = -Infinity
Field Value
- double
NaN
public GlobalObject.NaN NaN
Field Value
- GlobalObject.NaN
POSITIVE_INFINITY
public const double POSITIVE_INFINITY = Infinity
Field Value
- double
Properties
Prototype
[To("FirstCharToLowerCase")]
public static NumberPrototype Prototype { get; }
Property Value
- NumberPrototype
Value
public dynamic? Value { get; set; }
Property Value
- dynamic
Methods
IsFinite(double)
[To("FirstCharToLowerCase")]
public bool IsFinite(double number)
Parameters
number double
Returns
- bool
IsInteger(double)
[To("FirstCharToLowerCase")]
public bool IsInteger(double number)
Parameters
number double
Returns
- bool
IsNaN(double)
[To("FirstCharToLowerCase")]
public bool IsNaN(double number)
Parameters
number double
Returns
- bool
IsSafeInteger(double)
[To("FirstCharToLowerCase")]
public bool IsSafeInteger(double number)
Parameters
number double
Returns
- bool
ParseFloat(string)
[To("FirstCharToLowerCase")]
public float ParseFloat(string str)
Parameters
str string
Returns
- float
ParseInt(string, dynamic)
[To("FirstCharToLowerCase")]
public int ParseInt(string str, dynamic radix)
Parameters
str string
radix dynamic
Returns
- int
Operators
implicit operator double(Number)
public static implicit operator double(Number value)
Parameters
value Number
Returns
- double
implicit operator int(Number)
public static implicit operator int(Number value)
Parameters
value Number
Returns
- int
implicit operator Number(double)
public static implicit operator Number(double value)
Parameters
value double
Returns
- Number
implicit operator Number(int)
public static implicit operator Number(int value)
Parameters
value int
Returns
- Number