What do you need to put after the % to print double
In c language
4/23/2019 7:13:57 AM
If the language is C, then you can put %f.
There's more explanation here.
eilon toledano According to the explanation from the link, printf converts float to double. So yes, %f is for both float and double.
Ya it's %f
So f is both to float and double?
Please specify a language.
Because i dont know if this is the same for all languages.
Double is called a flaot with a wider size
Send us a message