From: Alex DeCaria Date: 2010-04-15T00:09:59+09:00 Subject: Re: Method to groom a string to floating point representation Jean-Julien Fleck wrote: > > Sure, fun it is :o) > But that's exactly the kind of software that could drive me mad (as a > user). You assume that your user is making a typo but what if he is > not ? What if he truly believe what he is writing is a perfectly > correct float ? He will retry again, and again and again untill he > decide that the whole software is just a fraud :o) So IMHO, it is more > efficient to let your user know what kind of error he is (possibly > repetitively) doing and propose an alternative rather than erase what > he believe could be right. > > Cheers, I can't argue with the point you are making. I will continue to use the automatic string grooming, but will probably include a message to the user letting them know why what they are typing isn't showing up in the textbox. --Alex -- Posted via http://www.ruby-forum.com/.