Pair of Vintage Old School Fru
/ /

XtScript Function: pow

Returns $num raised to the power of $exp.

pow is an XtScript function that will do math operation that will return the calculation of $num argument given to the power of $exp argument.

XtScript pow function basic syntax:

<!--parser:xtscript-->
	call pow $num=...; $exp=...
<!--/parser:xtscript-->

Learn XtScript pow function from examples

Using XtScript pow function to do power math operation.

- Code:
<!--parser:xtscript-->
	# Assigning space into variable using chr function so we can print space as the last character
	var $spa = call chr $val=32

	print 10<sup>3</sup> =$spa
	call pow $num=10; $exp=3
	print <br/>

	print 2<sup>5</sup> =$spa
	call pow $num=2; $exp=5
<!--/parser:xtscript-->
- Result:
103 = 1000
25 = 32