These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Rounding a number up if any number in tenths place

WC_GRAHAM
Registered: Aug 28 2008
Posts: 2
Answered

I have a field on my form where I have to round a number up if there is any number in the tenths place at all.

Example: 60.1 -- Must be rounded to 61

It doesn't seem like any Round function I've tried will work because they will only round up if the number in the tenths place is 5 or greater. I need to round up if there is anything but a whole number.

Does anyone know how I could do this?

Any help you can give would be greatly appreciated.

My Product Information:
Acrobat Pro 5.x or older, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Use the Math.ceil JavaScript function.

George