Answered
Hi - I have a form that I need to code to round up. The first field called Submit.1 gives the actual total. and the second field named RSubmit.0 is suppose to be a rounded field of Submit.1. The form was originally created in Excel, and the Excel code is: =ROUNDUP(H32,-3)
Can anyone help with the correct script for this?
Thanks
You have a previous post about using LiveCycle Designer.
LiveCycle Designer has the built-in function "Ceil" that rounds the passed parameter to the next smallest value and allows for specification of the precision (decimal places).
If your form was created in Acrobat, you will need to add user written code using the 'Math.ceil' method of JavaScript. This method only works at the integer level and you will need to adjust the precision using the "Math.pow" method.
George Kaiser