C# Класс DoubleExtension, Adnc

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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