Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
        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);
            }
        }