c# - How to maintain decimal precision in calculations -


I need to sum 2 decimal values ​​together, then divide by 2 and convert to string.

My calculation is currently triming at 2 decimal places, but I want to put as much decimal as I can.

  city.Latitude = ((lat.North + lat.South) / 2) .string ();  

are the values ​​for lat.North and lat.So are: 55.32342322

toString ( ) method.


Comments