outBuf.length nothing is
written; success means required <= outBuf.length and outBuf[0 .. required] holds the text.
size_t formatTo(scope char[] outBuf) const @safe pure nothrow @nogcFormats the exact decimal text into a caller-provided buffer (capacity protocol). The integer part is printed in full; the fraction is exact — n fraction bits print as at most n decimal digits, trailing zeros trimmed (12.5, 0.015625). Zero prints as 0.
outBuf | destination buffer. |
outBuf.length nothing is
written; success means required <= outBuf.length and outBuf[0 .. required] holds the text.