From: Lloyd Linklater Date: 2007-11-13T08:23:28+09:00 Subject: Re: Fractional part of a float 7stud -- wrote: > Jari Williamsson wrote: >> Is there any built-in method to get the fractional part from a float, or >> do I need to resolve to a... >> f - f.to_i >> ...kind of approach? >> > > If you think it's clearer: > > 8.2675.modulo(1) It sounds as if we need a new method for numbers, mantissa, where the fraction portion is returned. Can we add that to the core? -- Posted via http://www.ruby-forum.com/.