In 'C', the value in front of the decimal in all printf format statements, is the _total field width_, not digits in front of the decimal.
It is therefore always overflowing the specified width (.00, is three characters), so switches to the default of showing one digit in front of the decimal.
You need %05.2F to give two digits in front of the decimal.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum