•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 427,187 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,199 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser: Programming Forums
Views: 1184 | Replies: 10 | Solved
![]() |
•
•
•
•
Thanks Aia...i realize if i declare sum as of type double instead of integer i get the correct value.
Thanks everybody
For further understanding about converting a floating point to an integer take a look at this reading. Particularly to the differences between truncating conversion and rounding conversion.
Perhaps this one and this one will show also some light to the matter.
"No man's life, liberty, or property is safe while the legislature is in session." ~ Mark Twain
![]() |
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Base Conversion (Java)
- Need advice and base conversion. Please help as soon as you can. Thanks (C++)
- Assembler n00b. Need Help Please. (Assembly)
- Convert decimal to binary and with base the 8 (C)
- base conversion (Java)
- converting base class to dervived class (C)
- Base converter (C++)
- Copy constructor in derived class (C)
- the books you use (Computer Science and Software Design)
Other Threads in the C Forum
- Previous Thread: arrays
- Next Thread: COMport C++ problem



Linear Mode