This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Function
Format a floating-point value and write it to buffer. Returns a slice to the buffer containing the string representation.
Full precision is the default. Any full precision float can be reparsed with std.fmt.parseFloat unambiguously.
Scientific mode is recommended generally as the output is more compact and any type can be written in full precision using a buffer of only min_buffer_size.
When printing full precision decimals, use bufferSize to get the required space. It is recommended to bound decimal output with a fixed precision to reduce the required buffer size.
Format a floating-point value and write it to buffer. Returns a slice to the buffer containing the string representation.
Full precision is the default. Any full precision float can be reparsed with std.fmt.parseFloat unambiguously.
Scientific mode is recommended generally as the output is more compact and any type can be written in full precision using a buffer of only
min_buffer_size.When printing full precision decimals, use
bufferSizeto get the required space. It is recommended to bound decimal output with a fixed precision to reduce the required buffer size.