Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

Need help with rounding...

$
0
0

Hello,

 

I am working on a fillable form in Acrobat XI.  I have been able to figure out how to make some fields auto-calculate using simplified field notation.  However, I do not have much experience with this or javascript.

 

What I need is for a field to round up to the next 0.25 when doing its calculation.  Currently, I have simplified field notation taking a field that shows the sum of two fields and dividing by 60.

 

totalpca / 60

 

A response to this equation may be something like 15.55.  However, what I need it to read is 15.75.  (Because it rounded up to the next 0.25)  My numbers should all end in .00, .25, .50, or .75, with it always rounding up.  I am pretty sure, if this is possible, it would need to be done with javascript, but I don't even know where to begin.

 

Thank you for any help you can offer!


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>