用户工具

站点工具


reference:language:serial_parsefloat

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

reference/language/serial_parsefloat.txt · 最后更改: 2017/04/07 10:03 (外部编辑)