Path: utzoo!attcan!uunet!husc6!purdue!umd5!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: printf: should %f round ??? Keywords: Turbo C version 1.5 printf frustration Message-ID: <12645@mimsy.UUCP> Date: 23 Jul 88 02:45:24 GMT References: <7916@watdragon.waterloo.edu> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 14 In article <7916@watdragon.waterloo.edu> ajmyrvold@violet.waterloo.edu >(Alan Myrvold) writes: >I feel deeply that the only REASONABLE behaviour for printf is to >round to the precision specified - but is this behaviour spelled >out anywhere? Yes: May 13, 1988 draft proposed ANS X3J11, p. 130, \S 4.9.6.1: f ... The value is rounded to the appropriate number of digits. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris