You are here: Re: Currency rounding « All PHP « IT news, forums, messages
Re: Currency rounding

Posted by shortbackandsides.no on 05/15/07 15:26

On Tue, 15 May 2007 13:21:36 +0100, Geoff Berrow
<blthecat@ckdog.co.uk> wrote:

>Message-ID: <1179228680.850019.193580@k79g2000hse.googlegroups.com> from
>shimmyshack contained the following:
>
>>OT.
>>
>>In retail it is more complicated than just round down to nearest
>>penny!!
>
>
And we tripped over a shopping cart issue where rounding meant that
buying 10 items ended up costing a penny more than buying the ten
individually, inevitably someone spotted it and complained (yes, about
a one penny difference!)
The difference happens depending on whether you do the calculation
(item cost + vat) x 10
or (item cost x 10)+vat
Tax man is happy with either as long as you are consistent.

As for rounding down - oh bugger I'd just persuaded my script to round
both figures up consistently!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация