From: Kevin Brown Date: 2007-08-04T07:49:13+09:00 Subject: Re: percentage in Ruby ------_=_NextPart_001_01C7D620.856721C6 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable % is the modulo operator http://www.ruby-doc.org/docs/ProgrammingRuby/html/ref_c_numeric.html -----Original Message----- From: list-bounce@example.com on behalf of Li Chen Sent: Fri 8/3/2007 6:03 PM To: ruby-talk ML Subject: percentage in Ruby =20 Hi all, How to write percentage in Ruby, for instance 1.2%? Do I have to change it to 0.012 before I apply other operation on it? It looks like "%" is used for other purpose in Ruby. Thanks, Li --=20 Posted via http://www.ruby-forum.com/. ------_=_NextPart_001_01C7D620.856721C6--