¡@

Home 

c# Programming Glossary: roundedvalue

Formatting numbers with significant figures in C#

http://stackoverflow.com/questions/158172/formatting-numbers-with-significant-figures-in-c-sharp

int roundingPosition var roundedValue RoundSignificantDigits value significantDigits out roundingPosition.. 2 figures yeilds 10.0 instead of 10 RoundSignificantDigits roundedValue significantDigits out roundingPosition if Math.Abs roundingPosition.. return string.Format currentInfo 0 E significantDigits 1 roundedValue ReSharper restore FormatStringProblem string.format is only..