I\'ve written a program to display floats to the appropriate number of decimal places:
#include int main() { printf("%.2f, %.10f, %.5f, %.5f\