Answers for "c float string format"

C
14

f string float format

>>> a = 10.1234
>>> f'{a:.2f}'
'10.12'
Posted by: Guest on July-21-2020
5

convert string to float c

char myString = "6.88";
float x = atof(myString);
//x is now 6.88
Posted by: Guest on February-20-2020

Code answers related to "C"

Browse Popular Code Answers by Language