Summary

This command returns the square root of the parameter. If a square root is calculated on a negative value a numerical exception will display.


Attributes

  • none

Parameters

  • one number command

Example

<script scriptId="set-qtcb">
    <body>
        <s:if>
            <s:and>
                <s:isSet>
                    <s:question>
                        <s:question path=".qt"/>
                    </s:question>
                </s:isSet>
                <s:isSet>
                    <s:question>
                        <s:question path=".rr"/>
                    </s:question>
                </s:isSet>
            </s:and>
            <s:assign>
                <s:question path=".qtcb"/>
                <s:divide>
                    <s:numberPath path=".qt:value"/>
                    
                    <s:sqrt>
                        <s:divide>
                            <s:numberPath path=".rr:value"/>
                            <s:number value="1000"/>
                        </s:divide>
                    </s:sqrt>
                    
                </s:divide>
            </s:assign>
        </s:if>
    </body>
    <target typeId="qt" when="preprocess" shouldReconcile='true'/>
    <target typeId="rr" when="preprocess" shouldReconcile='true'/>
</script>



Need more help?

Please visit the Fountayn Contact Information page.