Wanted: More Math Functions (or, Can You Solve This?)
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14030
interpreted = N
texte = I'm trying to come up with a formula that will convert our US prices to ourCanadian prices.For higher priced items, we take the US price, multiply by 1.4, and roundup to the nearest 95 cents (eg, $6.95 would go to $9.95).For lower priced items, we take the US price, multiply by 1.4, and round upto the nearest 5 cents (eg, $2.95 would go to $4.15).This would be pretty simple to do with some sort of ROUND (or FLOOR orCEILING) context, but if one exists I don't know about it. I imagine thatit might look like this:[MATH ROUND=UP&.10].13[/MATH]=.20and[MATH ROUND=DOWN&.10].13[/MATH]=.10IS there another way to solve my problem?MichaelMichael Winston *By Phone!: (503)/652/8815 x341Internet Coordinator *By e-mail!: michaelw@dhorse.comDark Horse Comics, Inc. *By web!: http://www.dhorse.com/
Associated Messages, from the most recent to the oldest:
| |
- Re: Wanted: More Math Functions (or, Can You Solve This?) (bob 1997)
- Re: Wanted: More Math Functions (or, Can You Solve This?) (bob 1997)
- Re: Wanted: More Math Functions (or, Can You Solve This?) (Grant Hulbert 1997)
- Re: Wanted: More Math Functions (or, Can You Solve This?) (bob 1997)
- Re: Wanted: More Math Functions (or, Can You Solve This?) (bob 1997)
- Re: Wanted: More Math Functions (or, Can You Solve This?) (Grant Hulbert 1997)
- Re: Wanted: More Math Functions (or, Can You Solve This?) (bob 1997)
- Re: Wanted: More Math Functions (or, Can You Solve This?) (Grant Hulbert 1997)
- Re: Wanted: More Math Functions (or, Can You Solve This?) (bob 1997)
- Re: Wanted: More Math Functions (or, Can You Solve This?) (Michael Winston 1997)
- Re: Wanted: More Math Functions (or, Can You Solve This?) (Grant Hulbert 1997)
- Wanted: More Math Functions (or, Can You Solve This?) (Michael Winston 1997)
- Wanted: More Math Functions (or, Can You Solve This?) (Kenneth Grome 1997)
- Re: Wanted: More Math Functions (or, Can You Solve This?) (Grant Hulbert 1997)
|
I'm trying to come up with a formula that will convert our US prices to ourCanadian prices.For higher priced items, we take the US price, multiply by 1.4, and roundup to the nearest 95 cents (eg, $6.95 would go to $9.95).For lower priced items, we take the US price, multiply by 1.4, and round upto the nearest 5 cents (eg, $2.95 would go to $4.15).This would be pretty simple to do with some sort of ROUND (or FLOOR orCEILING) context, but if one exists I don't know about it. I imagine thatit might look like this:[MATH ROUND=UP&.10].13[/MATH]=.20and[MATH ROUND=DOWN&.10].13[/MATH]=.10IS there another way to solve my problem?MichaelMichael Winston *By Phone!: (503)/652/8815 x341Internet Coordinator *By e-mail!: michaelw@dhorse.comDark Horse Comics, Inc. *By web!: http://www.dhorse.com/
Michael Winston
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:
RE: E-mailer error codes (1997)
Tool of Use to Unix WebCat Admins (2000)
apostrophe in search item (1997)
Emailer tracking (1997)
& not allowed in db by definition? (1999)
Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997)
Event Calendar (2004)
Custom WebCat Prefs ... (1997)
webcat2b12 CGI -- Date comparisons (1997)
Buying sans cart (1997)
Interface to Quickbooks (2005)
EIMS Problems (1997)
Locking up with WebCatalog... (1997)
Help Encrypt/Decrypt eMail (2003)
[WebDNA] test email (2014)
Error.html (1997)
Refering page (1998)
Listfiles on network with NT (2000)
Up and running ... at last !! (1997)
[WebDNA] Wrong email address (2008)