前一修订版 | |||
— | reference:language:serial_parsefloat [2023/06/07 04:23] (当前版本) – 外部编辑 127.0.0.1 | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== Serial.parseFloat() ====== | ||
+ | |||
+ | ===== 描述 ===== | ||
+ | |||
+ | Serial.parseFloat()命令从串口缓冲区返回第一个有效的浮点数. Characters that are not digits (or the minus sign) are skipped. parseFloat() is terminated by the first character that is not a floating point number. | ||
+ | |||
+ | Serial.parseFloat()继承了Stream类。 | ||
+ | ===== 语法 ===== | ||
+ | |||
+ | Serial.parseFloat() | ||
+ | ===== 参数 ===== | ||
+ | |||
+ | 无 | ||
+ | ===== 返回 ===== | ||
+ | |||
+ | float |