Quote:
Originally Posted by aron9forever
since when does decimal selection round the float? shouldn't it still print 1.3 with %.1f of 1,39999?
|
Always. It tells it to round to X digits after the decimal point. However some implementations use "round to even" instead of the common "banker's rounding" so that's why you may be confused. Rounding does always occur but I'm not certain how (or by what) the method is specified.
__________________