On 23-Mar-06, at 6:38 AM, Lindsay B. wrote:
I need to access the sqrt method in my rails app. I believe I need the
Math library for this:
irb(main):010:0> require “Math”
LoadError: no such file to load – Math
Could someone tell me where I download the Math library from, and
I should place it on my file system? I can’t seem to find any
documentation explaining this.
It is already there, you can call it in a couple of ways:
or if you want a lot of Math methods you can use include to get the
Math module’s methods without the Math prefix:
You should read up on what include does before using it.
Hope this helps,
Mike S. firstname.lastname@example.org
The “`Stok’ disclaimers” apply.