From: Gregory Brown Date: 2007-01-11T01:39:26+09:00 Subject: Re: Why is there a seperate Math class? On 1/10/07, Vidar Hokstad wrote: > There are inconsistencies that annoy me with Ruby, though, such as > Math.sin(x) but x.abs x.abs seems to me a convenience method. If you're using irb in math mode or something like this, this might make your functions look prettier: >> module Math >> def abs(x) >> x.send(:abs) >> end >> end => nil >> include Math => Object >> abs(10) => 10 >> abs(-10) => 10 >> abs(-10.2114125) => 10.2114125