<?php
/**
 * It helper of global helper for both version.
 *
 * @package  vitepos
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( ! function_exists( 'appsbd_wc_amount' ) ) {
	/**
	 * The vitepos wc amount is generated by appsbd
	 *
	 * @param mixed $amount Its amount param.
	 *
	 * @return float
	 */
	function appsbd_wc_amount( $amount ) {
		$amount = (float) $amount;
		$decimals = wc_get_price_decimals();
		return round( $amount, $decimals );
	}
}
