% Conversion | Uses | Notes |
%f | float | printf only. |
%lf | double | scanf only. |
%Lf | long double | Not available on all compilers. |
4.23.scanf float | ||||
4.23.1. | The printf and sscanf conversions for floating-point numbers | |||
4.23.2. | Floating-Point Input: %f | |||
4.23.3. | Floating-Point Input: %e %g %f |