Answers for "double remove trailing zeros c#"

C#
1

how to display doubles with trailing zeros in c#

int numDigitsAfterPoint = 5;
double num = 1.25d;
string result = num.ToString("0." + new string('0', numDigitsAfterPoint));
Posted by: Guest on January-17-2021
0

C# trim trailing zero

public static decimal Normalize(this decimal value)
{
    return value/1.000000000000000000000000000000000m;
}
Posted by: Guest on December-10-2020

Code answers related to "double remove trailing zeros c#"

C# Answers by Framework

Browse Popular Code Answers by Language