Check @nogc toString impl
import mir.format: stringBuf; auto str = "5.28238923728e-876543210"; auto decimal = Decimal!1(str); stringBuf buffer; buffer << decimal; assert(buffer.data == str, buffer.data);
See Implementation