C# 클래스 DoubleExtension, Adnc

파일 보기 프로젝트 열기: AlphaYu/Adnc 1 사용 예제들

공개 메소드들

메소드 설명
Ceiling ( double @this ) : int

Returns the smallest integral value that is greater than or equal to the specified double-precision floating- point number.

Floor ( double @this ) : int

Returns the largest integer less than or equal to the specified double-precision floating-point number.

InRange ( double @this, double minValue, double maxValue ) : bool

A T extension method that check if the value is between inclusively the minValue and maxValue.

ToLong ( double @this ) : long

메소드 상세

Ceiling() 공개 정적인 메소드

Returns the smallest integral value that is greater than or equal to the specified double-precision floating- point number.
public static Ceiling ( double @this ) : int
@this double
리턴 int

Floor() 공개 정적인 메소드

Returns the largest integer less than or equal to the specified double-precision floating-point number.
public static Floor ( double @this ) : int
@this double
리턴 int

InRange() 공개 정적인 메소드

A T extension method that check if the value is between inclusively the minValue and maxValue.
public static InRange ( double @this, double minValue, double maxValue ) : bool
@this double
minValue double The minimum value.
maxValue double The maximum value.
리턴 bool

ToLong() 공개 정적인 메소드

public static ToLong ( double @this ) : long
@this double
리턴 long