Forums / Currencies & Sales Taxes, VAT, GST, etc. / Rounding up and rounding down how to stop this?

Rounding up and rounding down how to stop this?

Locked

Started by kazz on 2 Aug 2006, 2:26 PM · Views: 4,419

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
2 Aug 2006, 2:26 PM
#1
kazz avatar

kazz

New Zenner

Join Date:
Mar 2005
Location:
Australia
Posts:
13
Plugin Contributions:
0

Rounding up and rounding down how to stop this?

I have used Zen cart before but with older versions and never had this issue before - I have looked everywhere but cant find a fix for it - lets say for example I want to price an item at $8.99 it rounds it up to $9.00 - anything from $8.50 and up rounds up to $9.00 and anything $8.01 to $8.49 rounds down to $8.00 can anyone shed any light for me as to why this is happening? My store is set to run with AUD and I have the value set to $1.000000000 in the currency area if this helps.

Thanks in advance for any help.

Kazz

2 Aug 2006, 3:48 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Rounding up and rounding down how to stop this?

Could you post your currency settings?

Perhaps an URL to your site as well ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Aug 2006, 3:52 PM
#3
kazz avatar

kazz

New Zenner

Join Date:
Mar 2005
Location:
Australia
Posts:
13
Plugin Contributions:
0

Re: Rounding up and rounding down how to stop this?

NP :)

My currency settings are as follows...

Title: Australian Dollar
Code: AUD

Symbol Left: $
Symbol Right:

Decimal Point: .
Thousands Point: ,
Decimal Places: .

Last Updated:
Value: 1.00000000

Example Output:
$30 = $30

My URL is http://www.piercinghaven.com/shop/

Thanks for taking a look for me :)

Kazz

2 Aug 2006, 4:05 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Rounding up and rounding down how to stop this?

Umm ... perhaps this would best be changed?

Decimal Places: .

Does 2 make this work better? :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Aug 2006, 4:09 PM
#5
kazz avatar

kazz

New Zenner

Join Date:
Mar 2005
Location:
Australia
Posts:
13
Plugin Contributions:
0

Re: Rounding up and rounding down how to stop this?

YES that did it!! Thanks so much for your help :)

Kazz

2 Aug 2006, 4:22 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Rounding up and rounding down how to stop this?

You are most welcome ... thanks for letting us know that your number of Decimal Places was off and throwing the display of the prices off ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Aug 2006, 10:28 AM
#7
pilot avatar

pilot

New Zenner

Join Date:
Apr 2005
Posts:
55
Plugin Contributions:
0

Re: Rounding up and rounding down how to stop this?

Hello

I have a product of .64p (gp £ ) and I am applying a discount of 30% with 2 decimal points in currencies this gives a result of .45p by rounding up

When I set 3 decimal places this gives me the correct value of .448p but this now shows pounds value at for instance £44.800

Can I set the calculation for 3 decimal places and only show 2 ? such as £44.80

I have currencies set as follows

Title: GB Pound
Code: GBP

Symbol Left: £
Symbol Right:

Decimal Point: .
Thousands Point: ,
Decimal Places: 3

Last Updated:
Value: 1.00000000

Example Output:
£30.000 = £30.000

Thank you in advance

18 Aug 2006, 10:44 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Rounding up and rounding down how to stop this?

Which version of Zen Cart?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Aug 2006, 10:54 AM
#9
pilot avatar

pilot

New Zenner

Join Date:
Apr 2005
Posts:
55
Plugin Contributions:
0

Re: Rounding up and rounding down how to stop this?

Sorry .... its the latest 1.3.0.2

24 Jul 2008, 5:40 PM
#10
lextechs avatar

lextechs

Zen Follower

Join Date:
Mar 2005
Location:
Tempe, AZ
Posts:
316
Plugin Contributions:
0

Re: Rounding up and rounding down how to stop this?

I didn't see this thread before postin gin the other one. So i am using MSRp mod and Cost margin mode, my currency setting are :

Title: US Dollar
Code: USD

Symbol Left: $
Symbol Right:

Decimal Point: .
Thousands Point: ,
Decimal Places: 2

Last Updated: 11/02/2006
Value: 1.00000000

Example Output:
$30.00 = $30.00

What's happen is when i enter a the mark up % i may get something like $19.9963, and the is shows as $20.00 when previewed or listed, what i would like it to show id jut $19.99

Lextechs.com Powered By ZenCart