Honestly, no, not since I used to teach in a university have I seen floats used for loop counters. However, just looking through the code I work on now I can see dodgy uses of floating point (not involving money).
On Mon, Oct 18, 2010 at 7:51 PM, Casper Bang <[email protected]> wrote: > On Oct 18, 4:14 pm, Ricky Clarkson <[email protected]> wrote: >> Erm, floating point precision is something virtually every user of >> floating point should be aware of. > > Ehhh of course it is, who's saying it isn't? Developers should know > it's an approximation and should not be used for monetary calculations > etc. Have you actually seen iteration over float/double in any real > code... because I haven't. > > -- > You received this message because you are subscribed to the Google Groups > "The Java Posse" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/javaposse?hl=en. > > -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
