llms_get_floats_rounding_precision()
Retrieve the precision for round function for floating values.
Return Return
(int)
Source Source
File: includes/admin/llms.functions.admin.php
function llms_get_floats_rounding_precision() {
// Used `static` to store precision value so `apply_filters()` run only once per request.
static $precision = null;
if ( is_null( $precision ) ) {
/**
* Filters the precision for round function for floating values.
*
* @since 7.1.3
*
* @param int $precision Precision for round function for floating values.
*/
$precision = apply_filters( 'lifterlms_floats_rounding_precision', 2 );
}
return $precision;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 7.1.3 | Introduced. |