I need help to insert commas as digits separators.

RAMontante bobmon at iuvax.cs.indiana.edu
Wed May 17 12:12:45 AEST 1989


One approach would be to use sprintf(), itoa(), and the like to convert
your values into ASCII strings (presumably without loss of accuracy), then
perform string manipulations to insert comma-characters into the
representations.

(Hint: start with strchr()/index() to find the decimal point.)



More information about the Comp.lang.c mailing list