[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

round / significant figs. etc.


Please excuse a really basic question which may have been covered already
(many times?)...

Is there a reliable way to round off calculations to a given number of
decimal places, typically 2 for dollars/cents display etc. I tried using
round on 100 times the result and then diving by 100 again but this doesn't
work, and tends to produce nn.99999999 style results!

Any simple solutions which work out there please?


John Reddie

PowerMEDIA Ltd. - Data Presentation & AV systems design & production

proShow Systems - "Show control" for theatre, concerts & exhibitions

email: johnr@powermedia.co.uk   website: http://www.powermedia.co.uk

This message came from the mailing list javascript. For help using the
mailing list software, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.