示例#1
0
 public static bool NumberToString(double v, FastDtoaBuilder buffer)
 {
     buffer.Reset();
     if (v < 0)
     {
         buffer.Append('-');
         v = -v;
     }
     return(Dtoa(v, buffer));
 }
示例#2
0
        public static bool NumberToString(Money v, FastDtoaBuilder buffer)
        {
            buffer.Reset();
            if (v < 0)
            {
                buffer.Append('-');
                v = -v;
            }

            System.Diagnostics.Debug.WriteLine("NumToString" + v);
            return(Dtoa(v.ToDouble(), buffer));             // FIXME
        }
示例#3
0
        public static string NumberToString(double v)
        {
            cachedBuffer.Reset();
            if (v < 0)
            {
                cachedBuffer.Append('-');
                v = -v;
            }

            var numberToString = Dtoa(v, cachedBuffer);
            var toString       = numberToString ? cachedBuffer.Format() : null;

            return(toString);
        }