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:
Troubles with Selection Drop Down List Search (1998)
carriage returns in data (1997)
Re:Variable Math (1998)
Need WebDNA that crashes server for testing (2000)
[WebDNA] Libmysql.dll error (2009)
Associative lookup style? + bit more (1997)
Can WC remember people? (1998)
[WebDNA] How to use [function] (2012)
Promise of future help (1998)
Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997)
Almost a there but..bye bye NetCloak (1997)
Undeliverable Mail (1997)
Lineitems [text*] (2004)
WebDelivery downloads alias, not original ? (1997)
can WC render sites out? (1997)
[WriteFile] problems (1997)
Multiple Search Fields (1998)
sendmail spaces (1997)
webmerch and serials - almost there (1997)
WebCat2b13MacPlugIn - More limits on [include] (1997)