Forum Discussion
MattHardy
4 years agoQrew Trainee
Hi Stephen,
Try the code below, it's something I found on here for a problem I had awhile ago. A quick test seemed to function properly as a report formula.
var text subtotal = ToFormattedText(Round( [Number - currency field]],0.01),"comma_dot");
var number subwheredot=If(Contains($subtotal,"."),Length(Right($subtotal,".")),0);
var text subtotaldisplay = If($subwheredot = 0, $subtotal & ".00", If($subwheredot = 1, $subtotal & "0", $subtotal));
$subtotaldisplay
------------------------------
Matt Hardy
------------------------------
Try the code below, it's something I found on here for a problem I had awhile ago. A quick test seemed to function properly as a report formula.
var text subtotal = ToFormattedText(Round( [Number - currency field]],0.01),"comma_dot");
var number subwheredot=If(Contains($subtotal,"."),Length(Right($subtotal,".")),0);
var text subtotaldisplay = If($subwheredot = 0, $subtotal & ".00", If($subwheredot = 1, $subtotal & "0", $subtotal));
$subtotaldisplay
------------------------------
Matt Hardy
------------------------------