M
Mark Fox
Hello,
I have a "smallmoney" field in SQL Server that I am
attempting to display, but when I use the .ToString()
method on a decimal variable it displays too many places
after the decimal point (i.e. more than two). I know
there's a string I could use as an argument for ToString
() that will only display the first two deigits after the
decimal point, does anyone know what that is? Thanks for
your help!
decimal AccountTotal = 4.7300;
string myString = AccountTotal.ToString("????");
I have a "smallmoney" field in SQL Server that I am
attempting to display, but when I use the .ToString()
method on a decimal variable it displays too many places
after the decimal point (i.e. more than two). I know
there's a string I could use as an argument for ToString
() that will only display the first two deigits after the
decimal point, does anyone know what that is? Thanks for
your help!
decimal AccountTotal = 4.7300;
string myString = AccountTotal.ToString("????");