Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

$currencies->display_price() function calculation


expert

Recommended Posts

Hello all,

 

I think something is wrong with $currencies->display_price function. For example:

 

Display prices with tax = ENABLED

 

Exchange: 1 USD = 1012 ABC

 

Product Price : 100.35 USD

Tax : 10%

 

echo  $currencies->display_price(100.35, 10);

 

result = 111.714,68 ABC

 

Unfortunately, result must be = 100.35 *1.10 * 1012 = 111.709,62 ABC

 

Where this calculation difference comes from?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...