Controlling decimal places in printf

02 Feb 2011

Is there an equivalent function as setprecision() in mbed? want to control the number of decimal places displayed in printf output?

02 Feb 2011

You can find the printf reference here. What you need is %.4f for 4 digits.

04 Feb 2011

Thanks I knew that existed, but could not remember where to find it. Bookmarked it this time