I have a form that I am trying to create a calculation on to save time in future filling of this form. I will have to use this form multiple times for various companies. Here is what I have leading up to the field that I need help with the calculation on:
Field 1 is Net Assets End of Period
Field 2 is Net Assets Used for Activities
Field 3 is a calculation of Field 1 - Field 2 with a limit to not go below 0
Field 4 is the one I need the calculation on. It is Field 3 * .0001 rounded to whole dollars and if it's less than $5 should be $0.
I'm pretty sure I could use the info from the Field 3 calculation to get the limit to display 0, but how do I get it to round if it actually calculates?
-edit-
Here is what I have so far:
var a = this.getField("SubNetAss").value;
var b = .0001;
event.value = a * b
if(event.value < 5) event.value = 0;
This calculates correctly and displays $0 for anything under $5, but how do I round this off to whole dollars?
George Kaiser