Hi,
When I try to execute the following, I get an int when it should have been a float.
I get the output 2 and not 2.5 . How do I make it output 2.5?
regards
Hi,
When I try to execute the following, I get an int when it should have been a float.
I get the output 2 and not 2.5 . How do I make it output 2.5?
regards
This is a very fundamental question and not related to Qt.
You might want to google "C++ division"
Ok, got it !! Thanks.
Bookmarks