+ 1
How do you print out decimals in c++
3 odpowiedzi
+ 10
Use "double" for up to 15 decimals or "float" for up to 7 decimals.
If you'd like your answer to be a decimal number place a "." after the number (x=10./3.;) or type "(float)" before the variable (x= (float) 10/3;).
+ 2
Come to my room
+ 1
use double or float...