From: 7stud -- Date: 2007-11-13T08:11:07+09:00 Subject: Re: Fractional part of a float 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) -- Posted via http://www.ruby-forum.com/.