0

how to take input of double number in c++

to take all number after the decimal

12th Jun 2020, 8:34 AM
GAURAV SINGH
GAURAV SINGH - avatar
3 Answers
0
double n; cin>>n; so you can take decimal input
12th Jun 2020, 8:35 AM
ê§àŒ’â˜ŹBad☏Boyâ˜ŹàŒ’ê§‚
ê§àŒ’â˜ŹBad☏Boyâ˜ŹàŒ’ê§‚ - avatar
0
no it not take all digit after the decimal  for ex double n=14049.30493; cout<<n; output 14049.3
12th Jun 2020, 8:56 AM
GAURAV SINGH
GAURAV SINGH - avatar