Skip to content
+1-888-319-3663

COMMUNITY FORUM

Converting from string to rounded Decimal

Adrian asked 7 years ago
Decimal subt= System.Convert.ToDecimal( _SUBTOTAL);
return System.Decimal.Round(subt ,2);
Adrian replied 7 years ago

Can the above code be use in addition columns?

Answers
Lorren Zemke Staff answered 7 years ago
Adrian,
 
Yes, you could use that code. Make sure you set the Language on the Map Options tab to use C#.
You could also use do the following to shorten it.
 
return Decimal.Parse(_SUBTOTAL.ToString()).Round(2);
 

If you would like to submit an answer or comment, please sign in to the eOne portal.