Re: Roundup
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 36559
interpreted = N
texte = Multiply by 10, round the number, then divide by 10.- brianAt 12:50 AM 6/22/2001, Nitai @ ComputerOil wrote:>Has any Webcater out there worked around rounding up to the .05?>>I have some calucations which come out as 65.13. What I need is to have to>round up or down. Here in Switzerland we usually dont use the 1 cent, 2>cent, etc. We round everything up or down.>>Everything below 5 is rounded down and everything above up. So 65.13 should>acutally show 63.10 and 63.17 should be 63.20.>>Trying ceil and floor does not help because it rounds the whole int and not>only the .05 part. Any work arounds?>>Sincerely,>Nitai Aventaggiato>>-->We make tools to energize your business>Content Management & eBusiness Systems>>ComputerOil GmbH http://computeroil.com>Hauptstrasse 12 info@computeroil.com>8252 Schlatt/Switzerland>Tel: +41 (0)52 654 15 55-- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.com =>-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Multiply by 10, round the number, then divide by 10.- brianAt 12:50 AM 6/22/2001, Nitai @ ComputerOil wrote:>Has any Webcater out there worked around rounding up to the .05?>>I have some calucations which come out as 65.13. What I need is to have to>round up or down. Here in Switzerland we usually dont use the 1 cent, 2>cent, etc. We round everything up or down.>>Everything below 5 is rounded down and everything above up. So 65.13 should>acutally show 63.10 and 63.17 should be 63.20.>>Trying ceil and floor does not help because it rounds the whole int and not>only the .05 part. Any work arounds?>>Sincerely,>Nitai Aventaggiato>>-->We make tools to energize your business>Content Management & eBusiness Systems>>ComputerOil GmbH http://computeroil.com>Hauptstrasse 12 info@computeroil.com>8252 Schlatt/Switzerland>Tel: +41 (0)52 654 15 55-- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.com =>-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
Brian Fries
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:
[addlineitems] display (1997)
Problems with [Search] param - Mac Plugin b15 (1997)
[WebDNA] 64-bit CentOS 6.3 (2013)
RE: Automatic Forwarding using WebCat (1997)
find with exceptions (1997)
Writefile help needed (2000)
webcat NT with [dos] command (1997)
Bug or syntax error on my part? (1997)
Java combo box with WebDNA database (2004)
sharing cookie recepies (1998)
Suggestion: appendfounditems (2002)
Include Files (1998)
PIXO (1997)
Odd error in logs (1998)
WebCommerce: Folder organization ? (1997)
Download URL & access on the fly ? (1997)
WebCat/CyberStudio Compatibility (1998)
[sendmail] possible modification needed... (2000)
[Q] Novice's question (1997)
Problems setting MIME Headers (1998)