Summary

This command returns the power of the parameters. The first parameter is the base. The second parameter is the index or exponent.


Attributes

  • none

Parameters

  • two or more number commands

Note: With the 14.1.0 release the power command will return up to 16 decimal places. For calculation accuracy it is recommended to truncate calculation 14 decimal places or less.


Example

<script scriptId="cubed_value">
    <body>
        <s:assign>
            <s:question path=".cubed_value"/>
            
            <s:power>
                <s:numberPath path=":value"/>
                <s:number value = "3"/>
            </s:power>
            
        </s:assign>
</body>
<target typeId="num" when="preprocess" shouldReconcile='true' />
</script>



Need more help?

Please visit the Fountayn Contact Information page.