my double function generating values like this
56,365989365
i want just value like this 56,36
how to get this ?
Answer
Use Math.Round
. The second argument is the number of places.
var x = Math.Round(56.365989365, 2);
Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...
No comments:
Post a Comment