From: 7stud -- Date: 2009-03-19T15:15:30+09:00 Subject: Re: Modulo ? Zayd Connor wrote: > Maybe i need to get some sleep, but can someone explain how modulos > work? > > Thanks result = 7 % 3 puts result --output:-- 1 7 has two 3's in it, and after removing those two 3's from 7, the remainder is 1. -- Posted via http://www.ruby-forum.com/.