PHP Класс Litipk\BigNumbers\DecimalConstants

Автор: Andreu Correa Casablanca ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
e ( integer $scale = 32 ) : Decimal Returns the Euler's E number.
eulerMascheroni ( ) : Decimal Returns the Euler-Mascheroni constant.
goldenRatio ( ) : Decimal Returns the Golden Ration, also named Phi.
lightSpeed ( ) : Decimal Returns the Light of Speed measured in meters / second.
negativeOne ( )
one ( )
pi ( ) : Decimal Returns the Pi number.
silverRatio ( ) : Decimal Returns the Silver Ratio.
zero ( )

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

Метод Описание
__clone ( ) Private clone method
__construct ( ) Private constructor

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

e() публичный статический Метод

Returns the Euler's E number.
public static e ( integer $scale = 32 ) : Decimal
$scale integer
Результат Decimal

eulerMascheroni() публичный статический Метод

Returns the Euler-Mascheroni constant.
public static eulerMascheroni ( ) : Decimal
Результат Decimal

goldenRatio() публичный статический Метод

Returns the Golden Ration, also named Phi.
public static goldenRatio ( ) : Decimal
Результат Decimal

lightSpeed() публичный статический Метод

Returns the Light of Speed measured in meters / second.
public static lightSpeed ( ) : Decimal
Результат Decimal

negativeOne() публичный статический Метод

public static negativeOne ( )

one() публичный статический Метод

public static one ( )

pi() публичный статический Метод

Returns the Pi number.
public static pi ( ) : Decimal
Результат Decimal

silverRatio() публичный статический Метод

Returns the Silver Ratio.
public static silverRatio ( ) : Decimal
Результат Decimal

zero() публичный статический Метод

public static zero ( )