I'm honestly not sure what you're asking here. How do most what output decimal format numbers vs. rational? And what do you mean by "decimal format numbers" - do you mean floating-point numbers?
Are you asking how to format numbers in a string? If so, take a look at 'num.