Truncate numbers without rounding
I have a field that divides a number by 100 and I only want to show two places past the decimal without rounding, would this work for that and would I need to add this to the formula that does the dividing or would this go into a format tab?
Code I was using in the calculate tab:
var grandTotal = +getField("GrandTotal").value;
if (!isNaN(grandTotal) && grandTotal !== 0) {
event.value = grandTotal / 100;
}
Code I was using in the format tab:
event.value = util.printf("%.2f", event.value);
Thank you in advance if you can help.
