Rounding up to the next Integer.
Hi, Group.
I have number field that I need to round up to the next integer in another number field.
if field1 = 1.42, field2 = 2.
if field1 = 1.56, field2 = 2
if field1 = .02, field2 = 1
I think I need to use Math.ceil, but I don't know how.
Thanks in advance!
0
-
Try a business rule like:
if(field1.value > 0) { field2.value = Math.ceil(field1.value); }
0
Please sign in to leave a comment.
Comments
1 comment