0
How to print double
What do you need to put after the % to print double In c language
8 Antworten
+ 10
If the language is C, then you can put %f.
Edit:
There's more explanation here.
https://stackoverflow.com/questions/19952200/scanf-printf-double-variable-c
+ 10
eilon toledano According to the explanation from the link, printf converts float to double. So yes, %f is for both float and double.
+ 2
Ya it's %f
+ 1
C
+ 1
So f is both to float and double?
0
Please specify a language.
Because i dont know if this is the same for all languages.
0
Which language?
0
Double is called a flaot with a wider size