0

I have Double value = 65.536584144

When I run The program ( Windows Form app ) ...

It show me the FULL number , Like this ( 65.536584144 )

But I want only two numbers after point , Like this ( 65.53 )

How can I do it ?

There is a Function in C#.Net solve this problem ?

Habib
  • 219,104
  • 29
  • 407
  • 436
Mordyit
  • 77
  • 2
  • 5
  • Also see: http://stackoverflow.com/questions/2357855/round-double-in-two-decimal-places-in-c – Habib Sep 03 '15 at 13:58

1 Answers1

1
       double number = 65.536584144;
       var newNumber = Math.Round(number , 2);
Arash
  • 889
  • 7
  • 18