Ada's standard packages provide for output of all numeric types. The format of output can be adjusted in many ways.
Note how each time a generic package is instantiated with a numeric type. Also, there are both defaults to be set for the whole instance, and also ways to override Width
, say, when calling Put
with this parameter.