Re: Round up prices
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 30948
interpreted = N
texte = I feared that would be the case.It seems annoying that it's inconsistent the way it deals with this issue.For example, if you have the tax rate set at 17.5 and you call up the invoice page with a single item valued at 1,099, you will get the following values:[shippingtotal]: 1,099.00[taxtotal]: 192.32[grandtotal]: 1,291.32If, on the other hand you attempt to use the following code:[math][price]*1.175[/math], you will get 1,291.33!!The reason I am having these problems, is that I need to show the price with and without tax on all pages where the price is displayed, can anyone think of any other way of achieving this? (apart from storing the inc TAX price in the database and just calling it along with the ex TAX price!)Thanks.Mark.On Wednesday, April 26, 2000, Kenneth Grome
wrote:>>I'm having a few problems with the way that WebCatalog is rounding off prices.>>It's only a problem when the figures end .xx5 (IE: 1291.325).>>>>All the programs I've come across (including the one that handles >>all our sales order processing after it's been passed from >>WebCatalog - ACI 4D)>>will round this number UP, but WebCatalog rounds this DOWN.>>No options, that's just how it works, but you can get around this >problem by writing custom webdna code that detects the 5 in the 3rd >decimal place and deals with it the way you want to deal with it, >instead of the way webcatalog deals with it.>>>================================>Kenneth Grome, WebDNA Consultant>808-737-6499 http://webdna.net>================================>>>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to>>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Associated Messages, from the most recent to the oldest:
I feared that would be the case.It seems annoying that it's inconsistent the way it deals with this issue.For example, if you have the tax rate set at 17.5 and you call up the invoice page with a single item valued at 1,099, you will get the following values:[shippingtotal]: 1,099.00[taxtotal]: 192.32[grandtotal]: 1,291.32If, on the other hand you attempt to use the following code:[math][price]*1.175[/math], you will get 1,291.33!!The reason I am having these problems, is that I need to show the price with and without tax on all pages where the price is displayed, can anyone think of any other way of achieving this? (apart from storing the inc TAX price in the database and just calling it along with the ex TAX price!)Thanks.Mark.On Wednesday, April 26, 2000, Kenneth Grome wrote:>>I'm having a few problems with the way that WebCatalog is rounding off prices.>>It's only a problem when the figures end .xx5 (IE: 1291.325).>>>>All the programs I've come across (including the one that handles >>all our sales order processing after it's been passed from >>WebCatalog - ACI 4D)>>will round this number UP, but WebCatalog rounds this DOWN.>>No options, that's just how it works, but you can get around this >problem by writing custom webdna code that detects the 5 in the 3rd >decimal place and deals with it the way you want to deal with it, >instead of the way webcatalog deals with it.>>>================================>Kenneth Grome, WebDNA Consultant>808-737-6499 http://webdna.net>================================>>>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to>>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Mark Derrick
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Web*3 virtual hosting Webcatalog problem + Vicom bonus (1998)
XML version of WebDNA docs? (2000)
Protect and Serve (1999)
authorize.net CC processing (was WC on Mac OS X or Mac OS (2001)
SERIAL NUMBER PROBLEM *AGAIN*!!! (1998)
WebCatalog for guestbook ? (1997)
Problems with sql: "not supported" (2005)
Extra carriage returns (1999)
WebCat2b15MacPlugin - showing [math] (1997)
writefile on OSX (2004)
Re:listfiles-looking for slick solution (1997)
WebCommerce: Folder organization ? (1997)
WebCatalog for guestbook ? (1997)
WebCat2 Append problem (B14Macacgi) (1997)
formulas.db ?? (1998)
webcat- multiple selection in input field (1997)
Just Testing (1997)
Showing unopened cart (1997)
log out (2001)
Uh...can someone help me out with the b10? (1997)