------_ extPart_001_01C7D620.856721C6 Content-Type: text/plain; charset so-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 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 -- Posted via http://www.ruby-forum.com/. ------_ extPart_001_01C7D620.856721C6--