I'm working with .net core, and I having some issues formatting one number.
I have a decimal like this
decimal d = 362250;
And i want to show it rounded to 4 digits
3623
I was reading both Decimal.ToString formatting and custom number formatting but i wans't be able to do it
I try :
Console.WriteLine($"{d:####}"); //show 362250
Console.WriteLine($"{d:####,}"); //show 362
How can i achieve that?
I know its so simple, but I fighting with it for 2 hours!