String Dollar Format

I’m just trying to get my robots to type into a field this dollar amount without a dollar sign, so just the double. With all the calculations my double ends up having a few decimal places on the right, so I’m trying to narrow it down to two decimal places.

This is what I’m using,
calculatedCredit.ToString("###.00")

But its printing ###.00 in every field instead of the dollar amount. All of my variables have doubles, and it Should be printing, I don’t know what’s going on. What am I doing wrong here. Thank you for the help.

Calculated Credit is a double.

@Heathersmithx - Try using Math.Round(calculatedCredit, 2)

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.