Summary

This command returns the value of the first argument truncated to the number of decimal places provided by the second argument.


Attributes

  • none

Parameters

  • two number commands

Example

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



Need more help?

Please visit the Fountayn Contact Information page.