0
How to print complete number as a point value
hello all i tried to print double number which is double a =2.0 when i print a it displays only 2 not 2.0 so how to print complete number to point. value
2 Answers
0
Console.WriteLine("{0:N1}", a);
0
I guess you are unknowingly converting it to int in your later program.
paste your code link