GravityMath_Engine
Wrapper for the Hoa Math package
See Also
Source: includes/class-gravitymath-engine.php:10
Details
- Kind:
class - Namespace:
(global)
Properties
| Property | Type | Description |
|---|---|---|
$instance | GravityMath_Engine |
Methods
| Method | Description |
|---|---|
get_instance() | Get the instance of the class. |
result() | Parse and evaluate an expression. |
Method Reference
get_instance()
public static function get_instance()
Get the instance of the class.
Returns
Since: 2.5.0
Source: includes/class-gravitymath-engine.php:39
result()
function result( $expression='' )
Parse and evaluate an expression.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$expression | string | '' | The expression to evaluate. |
Returns
float|string
Since: 1.0
Source: includes/class-gravitymath-engine.php:80