Just to mention, floating point numbers r always compared *for equality* like
double d1 = 90.0; double d2 = 90.0; assert(d1 == d2); // might fail, and Wrong way to do !! assert(d1 - d2 < 1e-5); // given u assume precision of 1e-5, is the correct and recommended way. Programmers should realize their critical importance and responsibility in a world gone digital. They are in many ways similar to the priests and monks of Europe's Dark Ages; they are the only ones with the training and insight to read and interpret the "scripture" of this age. On Fri, Jan 7, 2011 at 1:47 AM, juver++ <avpostni...@gmail.com> wrote: > Numbers without fractional parts are represented exactly (in a range > supported by double). > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algoge...@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.