Ejemplo n.º 1
0
 public static bool NumberToString(double v, FastDtoaBuilder buffer)
 {
     buffer.Reset();
     if (v < 0)
     {
         buffer.Append('-');
         v = -v;
     }
     return(Dtoa(v, buffer));
 }
Ejemplo n.º 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
        }
Ejemplo n.º 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);
        }