formatNumber is an alternate way to print numbers. It is especially useful when representing both integral and floating point values with float point data types.
formatNumber was created for tsv-summarize, where all calculations are done as doubles, but may be integers by nature. In addition, output may be either for human consumption or for additional machine processing. Integers are printed normally. Floating point is printed as follows: