Content-Type: text/x-zim-wiki Wiki-Format: zim 0.4 Creation-Date: 2016-08-23T17:48:03+01:00 ====== powers ====== Created Tuesday 23 August 2016 The character for raising a number to a power is the caret, ^, which is shift on the number six key on a UK keyboard. echo (math "35^4") gives 1500625 Use printf if needed to make it look better 1,500,625 With decimals it is more tricky. You will get the number of decimal places according to the number of places in your command. echo (math "24.577^2") will give the answer 604.028 echo (math "24.577000^2") will give the correct answer of 604.028929 Note that this system does not round the numbers.