Formatting numbers with significant figures in C#
See: RoundToSignificantFigures by “P Daddy”. I’ve combined his method with another one I liked. Rounding to significant figures is a lot easier in TSQL where the rounding method is based on rounding position, not number of decimal places – which is the case with .Net math.round. You could round a number in TSQL to negative … Read more