formatC

formatC(x, digits=6, format='g', width=None)

Format numbers as strings. Vectorised.