0

Why there is "new price %4f"?explain plz .any eg

C

13th Aug 2020, 3:50 PM
Hari
2 Respostas
+ 4
Tip : always mention language either in question discription or in relevant tags. Assuming it to be C/C++. "%4f" will print a floating point with a width of at least 4 wide Whereas "%.4f" will print a floating point with a precision of four characters after the decimal point.
13th Aug 2020, 3:56 PM
Arsenic
Arsenic - avatar
+ 1
The format string "%4f" says: use at least 4 characters for the full string.
13th Aug 2020, 3:56 PM
Bits!