C# Класс SGDE.Content.Code.Library.Number

A data type representing an IEEE-754 double-precision floating-point number.
Наследование: Object
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
MAX_VALUE Number
MIN_VALUE Number
NEGATIVE_INFINITY Number
NaN Number
POSITIVE_INFINITY Number

Открытые методы

Метод Описание
Number ( ) : System

Creates a Number object with the value of 0.

Number ( Object num = null ) : System

Creates a Number object with the specified value.

toExponential ( uint fractionDigits ) : String

Returns a string representation of the number in exponential notation.

toFixed ( uint fractionDigits ) : String

Returns a string representation of the number in fixed-point notation.

toLocaleString ( ) : String

Returns the local string representation of the specified Number object (myNumber).

toPrecision ( uint precision ) : String

Returns a string representation of the number either in exponential notation or in fixed-point notation.

toString ( ) : String

Returns the string representation of the specified Number object (myNumber).

toString ( Number radix ) : String

Returns the string representation of the specified Number object (myNumber).

Приватные методы

Метод Описание
Number ( double d ) : System
forDigit ( int digit, int radix ) : char
toFormat ( char format, uint digits, uint offset ) : String
toString ( Number radix, bool local ) : String

Описание методов

Number() публичный Метод

Creates a Number object with the value of 0.
public Number ( ) : System
Результат System

Number() публичный Метод

Creates a Number object with the specified value.
public Number ( Object num = null ) : System
num Object The numeric value of the Number instance being created or a value to be converted to a Number.
Результат System

toExponential() публичный Метод

Returns a string representation of the number in exponential notation.
public toExponential ( uint fractionDigits ) : String
fractionDigits uint An integer between 0 and 20, inclusive, that represents the desired number of decimal places.
Результат String

toFixed() публичный Метод

Returns a string representation of the number in fixed-point notation.
public toFixed ( uint fractionDigits ) : String
fractionDigits uint An integer between 0 and 20, inclusive, that represents the desired number of decimal places.
Результат String

toLocaleString() публичный Метод

Returns the local string representation of the specified Number object (myNumber).
public toLocaleString ( ) : String
Результат String

toPrecision() публичный Метод

Returns a string representation of the number either in exponential notation or in fixed-point notation.
public toPrecision ( uint precision ) : String
precision uint An integer between 1 and 21, inclusive, that represents the desired number of digits to represent in the resulting string.
Результат String

toString() публичный Метод

Returns the string representation of the specified Number object (myNumber).
public toString ( ) : String
Результат String

toString() публичный Метод

Returns the string representation of the specified Number object (myNumber).
public toString ( Number radix ) : String
radix Number Specifies the numeric base (from 2 to 36) to use for the number-to-string conversion. If you do not specify the radix parameter, the default value is 10.
Результат String

Описание свойств

MAX_VALUE публичное статическое свойство

The largest representable number (double-precision IEEE-754).
public static Number MAX_VALUE
Результат Number

MIN_VALUE публичное статическое свойство

The smallest representable non-negative, non-zero, number (double-precision IEEE-754).
public static Number MIN_VALUE
Результат Number

NEGATIVE_INFINITY публичное статическое свойство

Specifies the IEEE-754 value representing negative infinity.
public static Number NEGATIVE_INFINITY
Результат Number

NaN публичное статическое свойство

The IEEE-754 value representing Not a Number (NaN).
public static Number NaN
Результат Number

POSITIVE_INFINITY публичное статическое свойство

Specifies the IEEE-754 value representing positive infinity.
public static Number POSITIVE_INFINITY
Результат Number