function Calculator::get
Returns the Calculator instance to use.
If none has been explicitly set, the fastest available implementation will be returned.
@psalm-pure @psalm-suppress ImpureStaticProperty
1 call to Calculator::get()
- BigDecimal::exactlyDividedBy in vendor/
brick/ math/ src/ BigDecimal.php - Returns the exact result of the division of this number by the given one.
File
-
vendor/
brick/ math/ src/ Internal/ Calculator.php, line 60
Class
- Calculator
- Performs basic operations on arbitrary size integers.
Namespace
Brick\Math\InternalCode
public static final function get() : Calculator {
if (self::$instance === null) {
/** @psalm-suppress ImpureMethodCall */
self::$instance = self::detect();
}
return self::$instance;
}