0
Considering the code below, how can I change the return of .7777
for 0.7777
?
using System;
using System.Globalization;
namespace Teste
{
class Program
{
static void Main(string[] args)
{
decimal x = 0.7777M;
var y = x.ToString("#.#######", CultureInfo.CreateSpecificCulture("en-US"));
Console.WriteLine(y);
Console.ReadKey();
}
}
}
Why? You’re doing this?
– novic