PHP Class Litipk\BigNumbers\DecimalConstants

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

Méthodes publiques

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

Méthode Description
__clone ( ) Private clone method
__construct ( ) Private constructor

Method Details

e() public static méthode

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

eulerMascheroni() public static méthode

Returns the Euler-Mascheroni constant.
public static eulerMascheroni ( ) : Decimal
Résultat Decimal

goldenRatio() public static méthode

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

lightSpeed() public static méthode

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

negativeOne() public static méthode

public static negativeOne ( )

one() public static méthode

public static one ( )

pi() public static méthode

Returns the Pi number.
public static pi ( ) : Decimal
Résultat Decimal

silverRatio() public static méthode

Returns the Silver Ratio.
public static silverRatio ( ) : Decimal
Résultat Decimal

zero() public static méthode

public static zero ( )