From: Ibraheem Umaru-Mohammed Date: 2002-12-02T22:03:30+09:00 Subject: Re: [FAQ] [Revised again] What are the non-alphanumerical symbols in Ruby code? * Gavin Sinclair [2002-12-02 10:04]: [---snip---] > + - * / % ** > > 1. Binary arithmetic operators representing addition (3 + 2), > subtraction (3 - 2), multiplication (3 * 2), division (3 / > 2), modulus (integer division remainder; 3 % 2 is 1), and > exponentiation (3 ** 2 is 9). "**" has the highest > precedence, followed by "*", "/", and "%", and finally "+" > and "-". All of these operators are methods. > > 2. Unary plus and minus (+3, -2). Unary plus and minus have > higher precedence than "*", "%", and "/", but lower precedence > than "**". These are methods (+@ and -@, respectively). > [--snip---] You may also want to add the string formatting use of '%' somewhere. ibraheem@ignoramus:$ ruby -e 'puts "%s maps to %d" % ["one",1]' one maps to 1 ibraheem@ignoramus:$ Kindest regards, --ibz. --