#include <reg51.h> #include <stdio.h>
main() { data float tmp; data unsigned char str[20]; tmp=-12.5; sprintf(str,"%3.3f",tmp); for(;;){} }