Warning: This function has been deprecated. Function llms_format_decimal() is deprecated with no replacement instead.

llms_format_decimal( int $number, boolean $dp = false, boolean $trim_zeros = false )

Format Number as decimal


Parameters Parameters

$number

(int) (Required) Price value.

$dp

(boolean) (Optional) Decimal points.

Default value: false

$trim_zeros

(boolean) (Optional) Trim zeros.

Default value: false


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/functions/llms.functions.currency.php

	 *
	 * Hook description.
	 *
	 * @since Unknown
	 *
	 * @param string $currency Currency code.
	 */
	return apply_filters( 'lifterlms_currency', get_option( 'lifterlms_currency', 'USD' ) );

}

/**
 * Get the name of a currency
 *
 * @since  3.0.0
 *
 * @param string $currency A currency code.
 * @return string
 */
function get_lifterlms_currency_name( $currency = '' ) {

	if ( ! $currency ) {
		$currency = get_lifterlms_currency();

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Function llms_format_decimal() is deprecated with no replacement.
3.24.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.