Re: [NEWBIE] small coding question

From: Greg Buxton (gbuxton@maple.he.net)
Date: 03/24/03


> i found it, but i don't know what this piece of text is for, %.1f
> i know what %s and %d are. what is f? and what does the .1 do?

f is floating point.

For floating point you can specify numbers for decimal places, so
%.1f says the first decimal place of a float, %5.2f would be in a
format like 00000.00, etc.

- Greg Buxton

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/26/03 PDT