Class NumberFactory
Factory for creating @see Number from string, integer, float or object. Useful for creating numbers from different types because Number throws \InvalidArgumentException if argument in constructor is not string. It can also create numbers for mathematical constants pi and e.
public
|
|
public
|
#
createNumber( string|integer|float|object $number )
Try to create new @see Number from an argument. |
public
|
|
public
|
#
createEulerNumber( )
Returns a new number which represents a mathematical constant e (Euler's number). Precision of the constant is 200 digits after decimal point. |