[LCP]Rounding questions

Chuck Martin nrocinu at myrealbox.com
Thu Sep 5 20:21:09 UTC 2002


On Thu, Sep 05, 2002 at 12:54:51PM +0300, Muli Ben-Yehuda wrote:
> because round returns a double and you're printing a float... 

The %f takes a double.  If I change "round((double) 390.0)" to
"(double) 390.0", the output is "390.000000" and a newline.

Chuck





More information about the linuxCprogramming mailing list