Summary
This command rounds a number to the nearest integer value.
Attributes
- decimals (optional)
Parameters
- one number command
Example
<script scriptId="tcv">
<body>
<s:assign>
<s:question path=".contractValueTotal"/>
<s:round decimals="2">
<s:add>
<s:numberPath path=".contractValue:value"/>
<s:numberPath path=".corValue1:value"/>
<s:numberPath path=".corValue2:value"/>
<s:numberPath path=".corValue3:value"/>
<s:numberPath path=".corValue4:value"/>
<s:numberPath path=".corValue5:value"/>
</s:add>
</s:round>
</s:assign>
</body>
<target typeId="contractValue" action="update" when="preprocess" shouldReconcile='true'/>
<target typeId="corValue1" action="update" when="preprocess" shouldReconcile='true'/>
<target typeId="corValue2" action="update" when="preprocess" shouldReconcile='true'/>
<target typeId="corValue3" action="update" when="preprocess" shouldReconcile='true'/>
<target typeId="corValue4" action="update" when="preprocess" shouldReconcile='true'/>
<target typeId="corValue5" action="update" when="preprocess" shouldReconcile='true'/>
</script>Need more help?
Please visit the Fountayn Contact Information page.