Re: Behaviour of round changed?
Greg Navis <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.general |
|---|---|
| Message-ID | <CAA6WWt-ETNGqNGbAv=y8X10aP1_CpniOos1dzyAdU16u9Ocw2A@mail.gmail.com> |
Let me emphasize what Matthew already said: you should never, ever use floats to represent money. Rounding, lack of precision, comparisons - all that makes floats unreliable for dealing with monetary amounts. Best regards Greg Navis Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>