Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
How do you round off a float?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="kdlittle88, post: 1524871"] It did! I forgot about printf. My code looks like this now and seems to work just fine! num = num + .05; printf = ("rounded number: %4.1f", num); Thanks for the help! p.s. does digital mars fit on a 64 meg flash disk and does it run without having to be installed? I am currently using djgpp but find it is a bit less user friendly than what I would like. Thanks tiny k [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
How do you round off a float?
Top