Function fcvt incorrect. example: int dec, sign; printf("%s\n", fcvt(1.12, 2, &dec, &sign)); result: 1.12e+00 but need: 112