From: "rubydev.deweerdt" Date: 2002-03-20T18:49:49+09:00 Subject: Float comparison Hi, I'd need to compare floats with a choosen precision, a sort of : 3.1415 == (2) 3.1416 #The (n) being the precision Would be true 3.1415 == (4) 3.1416 Would be false Is there a way in Ruby to accomplish this ? Thanks, "Acc�dez au courrier �lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 �/mn) ; t�l : 08 92 68 13 50 (0,34�/mn)"