Helper struct that formats a SI quantity.
Creates a new formatter from a format string.
Returns a wrapper struct that can be formatted by std.string.format or std.format functions.
import std.string; auto sf = SIFormatWrapper!Speed("%.1f km/h"); auto speed = 343.4 * meter/second; assert("Speed: %s".format(sf(speed)) == "Speed: 1236.2 km/h");
See Implementation
Helper struct that formats a SI quantity.