Question
How can I have a calculation always round up to the nearest 10th when the number is any amount above the whole number? For example 4.01 -> 4.1 instead of going down to 4.0
This is the script I am working with, what would it need to look like to achieve this?
var VOL = this.getField("VOL").value;
var CFM50 = this.getField("CFM50").value
if (VOL == "" || CFM50 == "")
[event.value = 0]
else event.value = (CFM50*60/VOL)
Thank you guys (and girls) in advance, I am very new to javascript and adobe, this is actually my first day working with it and Ive been struggling to make this work.
