+ 4

We use %d for integer and %f for float. What do we ue for double?

3rd Nov 2021, 6:53 AM
Geraldo Lici
Geraldo Lici - avatar
2 odpowiedzi
+ 5
%lf edit: %i is also used for integer.
3rd Nov 2021, 6:59 AM
Mohd Aadil
Mohd Aadil - avatar
+ 4
As @Mohd Aadil said, double format specifier %lf is used for double. Double is thought as long float, so %lf(Long Float) was chosen for double I guess
3rd Nov 2021, 7:19 AM
Rishi
Rishi - avatar