Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #14345
| From | Dr J R Stockton <reply1218@merlyn.demon.co.uk.not.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Sorting numeric strings |
| Date | 2012-05-06 17:50 +0100 |
| Organization | Home |
| Message-ID | <eIVorrBKvqpPFwNE@invalid.uk.co.demon.merlyn.invalid> (permalink) |
| References | (6 earlier) <n296q79vcj1hoi8vunmqem2nbe1litv4av@4ax.com> <29053378.63.1336093904131.JavaMail.geo-discussion-forums@pbctc10> <jo1cje$o4a$1@localhost.localdomain> <gkh8q712jvs0scpgtil3ull4cssmis5v1k@4ax.com> <jo1p6k$ra8$2@localhost.localdomain> |
In comp.lang.java.programmer message <jo1p6k$ra8$2@localhost.localdomain >, Fri, 4 May 2012 23:36:52, Martin Gregorie <martin@address-in- sig.invalid> posted: >You may use JavaScript for financial calculations. I would not. >Item: it is normal for currency conversions to be defined as a mandatory >algorithm defined as a set of integer calculations by the network or >authority who control the domain that the currency conversion is made in, >e.g S.W.I.F.T. These do not work if floating point arithmetic is used and >so are non-compliant. JavaScript, using IEEE 754 Doubles, is accurate for addition, subtraction, and multiplication of integers if the operands and results are no greater than 2^53. Division is as accurate as possible under those conditions; one may want to use it in conjunction with Math.round Math.floor or Math.ceil. Assumes not using a really early Pentium CPU. If working in dollars, quarters are safe. -- (c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME. Web <http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links. Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036) Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Sorting numeric strings Ben <no@way.com> - 2012-04-30 21:27 -0400
Re: Sorting numeric strings Arne Vajhøj <arne@vajhoej.dk> - 2012-04-30 21:39 -0400
Re: Sorting numeric strings Gene Wirchenko <genew@ocis.net> - 2012-05-01 10:30 -0700
Re: Sorting numeric strings Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-05-01 10:53 -0700
Re: Sorting numeric strings Roedy Green <see_website@mindprod.com.invalid> - 2012-05-01 14:50 -0700
Re: Sorting numeric strings Patricia Shanahan <pats@acm.org> - 2012-05-01 15:02 -0700
Re: Sorting numeric strings Roedy Green <see_website@mindprod.com.invalid> - 2012-05-02 14:36 -0700
Re: Sorting numeric strings Gene Wirchenko <genew@ocis.net> - 2012-05-02 19:57 -0700
Re: Sorting numeric strings Dr J R Stockton <reply1218@merlyn.demon.co.uk.not.invalid> - 2012-05-03 19:41 +0100
Re: Sorting numeric strings Roedy Green <see_website@mindprod.com.invalid> - 2012-05-03 17:40 -0700
Re: Sorting numeric strings Lew <lewbloch@gmail.com> - 2012-05-03 18:11 -0700
Re: Sorting numeric strings Martin Gregorie <martin@address-in-sig.invalid> - 2012-05-04 20:01 +0000
Re: Sorting numeric strings Gene Wirchenko <genew@ocis.net> - 2012-05-04 14:19 -0700
Re: Sorting numeric strings Martin Gregorie <martin@address-in-sig.invalid> - 2012-05-04 23:36 +0000
Re: Sorting numeric strings Dr J R Stockton <reply1218@merlyn.demon.co.uk.not.invalid> - 2012-05-06 17:50 +0100
Re: Sorting numeric strings Gene Wirchenko <genew@ocis.net> - 2012-05-07 10:34 -0700
Re: Sorting numeric strings Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-05-07 12:38 -0500
Re: Sorting numeric strings glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-05-07 17:48 +0000
Re: Sorting numeric strings Gene Wirchenko <genew@ocis.net> - 2012-05-07 11:42 -0700
Re: Sorting numeric strings Roedy Green <see_website@mindprod.com.invalid> - 2012-05-01 13:38 -0700
csiph-web