Abstract_Currency::get_decimal()


Source

File: src/Tribe/Values/Abstract_Currency.php

	public function get_decimal() {

		/**
		 * Filter the value returned for get_decimal() when implemented in a specific class type
		 *
		 * @since 4.14.9
		 *
		 * @param float $decimal the float representation of the value, rounded to precision
		 * @param Abstract_Currency the object instance
		 *
		 * @return float
		 */
		$decimal = apply_filters( "tec_common_value_{$this->get_value_type()}_get_decimal", $this->decimal, $this );

		/**
		 * Filter the value returned for get_decimal() when implemented in any class
		 *
		 * @since 4.14.9
		 *
		 * @param float $decimal the string representation of the value
		 * @param Abstract_Currency the object instance
		 *
		 * @return float
		 */
		return apply_filters( 'tec_common_value_get_decimal', $decimal, $this );
	}