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