One note of advice - the operator to use is actually ** not ^ as might be expected: irb> 7 ^ 2 # Gives 5 irb> 7 ** 49 # Gives 49 Cheers, Roland