主页
C 语言
C stdlib atof() 函数
demo_ref_stdlib_atof
运行 ❯
×
更改方向
保存代码
更改主题
#include
#include
int main() { char str[] = "4.25% above average"; float amount = atof(str); printf("%f", amount); return 0; }
4.250000