From: "Николай" Date: 2011-08-14T04:28:39+09:00 Subject: Fwd: Why this? --------------090507000809020808020603 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit -------- Original Message -------- Subject: Why this? Date: Sat, 13 Aug 2011 22:20:04 +0300 From: Николай To: ruby-talk@ruby-lang.org Hallow, can anybody explain me that? a = (10**2 + 5**2) #=> 125 b = Math.hypot(10, 5)**2 #=> 125.0 a == b #=>false a.to_f == b #=> false 125.0 == 125 #=> true 125.0.to_f == 125 #=> true --------------090507000809020808020603--