RFC: if strutils has `toBin()`, `toHex()`, `toOctal()`, `intToStr()`
and from system.nim, the `$` operator is described as
`The stringify operator for an integer argument. Returns x converted to a
decimal string. $ is Nim's general way of spelling toString.`
why not add a helper proc to strutils as
proc toString(f: SomeReal, prec: int = 8): string =
result = f.formatFloat(ffDecimal, prec)
