public/wordpress/wp-content/plugins/wp-courseware/includes/functions/core.php
/**
 * Add precision to a number and return a number.
 *
 * @since 4.5.0
 *
 * @param float $value Number to add precision to.
 * @param bool  $round If should round after adding precision.
 *
 * @return int|float
 */
Add precision to a number and return a number.

@param float $value Number to add precision to.
@param bool  $round If should round after adding precision.

@return int|float
Add precision to a number and return a number . @param float $value Number to add precision to . @param bool $round If should round after adding precision . @return int|float
function wpcw_add_number_precision( $value, $round = true ) {
	$cent_precision = pow( 10, wpcw_get_currency_decimals() );
	$value          = $value * $cent_precision;
	return $round ? round( $value, wpcw_get_rounding_precision() - wpcw_get_currency_decimals() ) : $value;
}
function wpcw_add_number_precision ( $ value , $ round = true ) { $ cent_precision = pow ( 10 , wpcw_get_currency_decimals ( ) ) ; $ value = $ value * $ cent_precision ; return $ round ? round ( $ value , wpcw_get_rounding_precision ( ) - wpcw_get_currency_decimals ( ) ) : $ value ; }
Add precision to a number and return a number.
Add precision to a number and return a number .