On Fri, May 24, 2013 at 2:41 PM, Mark Hahn <m...@hahnca.com> wrote: > > Which is okay for most use cases but not, say, when you are processing > monetary transactions. > > This is somewhat of a myth. People are afraid of floating point numbers > because they are somehow "imprecise". In fact, up to around 50 bits they > are as precise as integers. I've used them for money many times. It is as > simple as keeping the units in pennies. >
It's not a myth at all if you're actually using floating point numbers though. Try this in node: 1.03 - 0.42. If you're keeping the units in pennies then you're not using floating point anyway. Matt. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.