(English) parseFloat()
描述
parseFloat()
可以回傳串流中第一個可用的浮點數。若檢測到非符點數的字元時 parseFloat()
就會終止。
這個函式是 Stream 類別的一部分,它可以被任何繼承它的類別呼叫 (例如:Wire、Serial 等等) 。
語法
stream.parseFloat()
參數
stream
: 一個類別的實例,這個類別是繼承於 Stream
回傳
浮點數 (float 型別)
See also
- Stream
The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.