+ 1
How to print 6 decimals
Result = m /n; Console.WriteLine(Result);
4 Antworten
+ 2
Esraa Hesham
There is 2 more format to get in decimal
------
Console.WriteLine(Result.ToString("N6"));
Console.WriteLine(string.Format("{0:N6}", Result));
+ 1
Esraa Hesham
int m = Convert.ToInt32(Console.ReadLine());
int n = Convert.ToInt32(Console.ReadLine());
double Result = (double) m / n;
Console.Write(Result.ToString("0.000000"));
+ 1
I Am Groot !
Thank you so much!!
+ 1
Thank you a lot ^_^
This was so helpful!!