Why don't you use `formatDouble`?