C# 클래스 SGDE.Content.Code.Library.Number

A data type representing an IEEE-754 double-precision floating-point number.
상속: Object
파일 보기 프로젝트 열기: sgdc/sgdc-old

공개 프로퍼티들

프로퍼티 타입 설명
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