Implement ftoa: turn a floating-point number into a string with a given number of decimals, truncating — without the language's number-to-string helpers.
Implement ftoa: turn a floating-point number into a string with a given number of decimals, truncating — without the language's number-to-string helpers.
The discussion opens with the full question.