Hi,

When I try to execute the following, I get an int when it should have been a float.

Qt Code:
  1. std::cout<<5/2;
To copy to clipboard, switch view to plain text mode 

I get the output 2 and not 2.5 . How do I make it output 2.5?

regards