my double function generating values like this
56,365989365
i want just value like this 56,36 how to get this ?
56,36
Answer
Use Math.Round. The second argument is the number of places.
Math.Round
var x = Math.Round(56.365989365, 2);
No comments:
Post a Comment