FixedBinary.formatTo

size_t formatTo(scope char[] outBuf) const @safe pure nothrow @nogc

Formats 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.

Parameters

outBufdestination buffer.

Returns

The required length. When it exceeds outBuf.length nothing is

written; success means required <= outBuf.length and outBuf[0 .. required] holds the text.