Wayne Vucenic wrote: >> 8.2675.modulo(1) > > irb(main):015:0> -1.2.modulo(1) > => 0.8 > > which may or may not be the result the OP wanted. > > Wayne -1.2.abs.modulo(1) # => 0.2 Not all that difficult to avoid if it is not what the OP wanted. Regards Stefan -- Posted via http://www.ruby-forum.com/.