PHP Class Litipk\BigNumbers\DecimalConstants

Author: Andreu Correa Casablanca ([email protected])
Datei anzeigen Open project: litipk/php-bignumbers Class Usage Examples

Public Methods

Method Description
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 ( )

Private Methods

Method Description
__clone ( ) Private clone method
__construct ( ) Private constructor

Method Details

e() public static method

Returns the Euler's E number.
public static e ( integer $scale = 32 ) : Decimal
$scale integer
return Decimal

eulerMascheroni() public static method

Returns the Euler-Mascheroni constant.
public static eulerMascheroni ( ) : Decimal
return Decimal

goldenRatio() public static method

Returns the Golden Ration, also named Phi.
public static goldenRatio ( ) : Decimal
return Decimal

lightSpeed() public static method

Returns the Light of Speed measured in meters / second.
public static lightSpeed ( ) : Decimal
return Decimal

negativeOne() public static method

public static negativeOne ( )

one() public static method

public static one ( )

pi() public static method

Returns the Pi number.
public static pi ( ) : Decimal
return Decimal

silverRatio() public static method

Returns the Silver Ratio.
public static silverRatio ( ) : Decimal
return Decimal

zero() public static method

public static zero ( )