public static string DoubleToStr(this double value, StringPadDirection direction, int pad) { string s = SysSepToDec(value.ToString()); switch (direction) { case StringPadDirection.Left: return PadLeft(s, pad); case StringPadDirection.Right: return PadRight(s, pad); default: return s; } }
public static string DoubleToStr(this double value, StringPadDirection direction, int pad) { string s = SysSepToDec(value.ToString()); switch (direction) { case StringPadDirection.Left: return(PadLeft(s, pad)); case StringPadDirection.Right: return(PadRight(s, pad)); default: return(s); } }