formatN: Format Numbers Keeping Classes Distinguishable
Description
Format (generalized) numbers in a way that their classes
are distinguishable. Contrary to format() which uses a
common format for all elements of x, here, each entry is
formatted individually.
## Note that each class is uniquely recognizable from its output:formatN( -2:5)# integerformatN(0 + -2:5)# double precisionformatN(as.bigz(-2:5))
formatN(as.bigq(-2:5, 4))