C# Class DoubleExtension, Adnc

Afficher le fichier Open project: AlphaYu/Adnc Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

Ceiling() public static méthode

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
Résultat int

Floor() public static méthode

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

InRange() public static méthode

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.
Résultat bool

ToLong() public static méthode

public static ToLong ( double @this ) : long
@this double
Résultat long