float()
描述
將一個值轉換成 float 的資料型別。
語法
float(x)
參數
x
: 任何型別的值
回傳
float
注意
在 float 這篇文章中,介紹了 float 浮點數在 86Duino 上的特性,敘述使用時的精度及數值範圍,在運用 float 浮點數時可以參考。
See also
- float
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.