jayesjay
Number of posts : 2 Registration date : 2014-04-19
| Subject: Confirm method of raising number to a power Sat Apr 19, 2014 6:04 pm | |
| Please confirm that the usual Basic expression "x^y" is not valid in Panoramic language for raising x to power y. For example 2^3 = 8.
Can I assume that the normal rules of arithmetic apply otherwise, in order of execution: 1st Power 2nd Mult/Div 4th Plus/Minus 5th As controlled by brackets (((())))
I am writing this from memory, having just downloading Pan.. I haven't written a basic program for a long time, and just want to have some fun. | |
|
papydall
Number of posts : 39 Age : 73 Localisation : TUNISIA Registration date : 2013-03-16
| Subject: Re: Confirm method of raising number to a power Sun Apr 20, 2014 12:32 am | |
| Hello jayesjay In PANORAMIC, the syntax for a^b is: POWER(a,b) - Code:
-
Dim a,b a = 2 : b = 3 print power(a,b) If the French language is not an obstacle for you, I invite you on the French FORUM. It is here It is much more active than the English FORUM. Please excuse my bad English. Good programming with PANORAMIC. | |
|