示例#1
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);
        }
示例#2
0
        public static string NumberToString(double v)
        {
            var buffer = new FastDtoaBuilder();

            return(NumberToString(v, buffer) ? buffer.Format() : null);
        }
示例#3
0
        public static string NumberToString(Money v)
        {
            var buffer = new FastDtoaBuilder();

            return(NumberToString(v, buffer) ? buffer.Format() : null);             // FIXME
        }