Title: Display map distance with limited significant digits in C#
The post Measure distance on a map with a scale in C# lets you measure a distance on a map. However, it displays too many significant digits in the results to look nice. For example, the sample picture displays the distance around the lake as 3741.25310780188 feet.
This example uses the ToSignificantDigits extension method describe in the the post Display significant digits in C# to display this value more nicely.
See those two examples for details about those topics.
Download the example to experiment with it and to see additional details.
|