<=
名称
<=
説明
左辺の変数と右辺の値もしくは変数の比較を行う。左辺の値が右辺の値より小さい、または、等しいとtrueを返す。異なるデータ型の変数を比較することができるが、予期しない結果を引き起こすこともある。このため、signed/unsignedを含め同じデータ型で比較することを推奨する。
書式
x ⇐ y; // is true if x is smaller than or equal to y and it is false if x is greater than y
引数
| x | 変数。利用できるデータ型: int, float, double, byte, short, long。 |
| y | 変数もしくは定数。利用できるデータ型: int, float, double, byte, short, long。 |
使用例
|
|
注意
負数は正数より小さい。
参照
オリジナルのページ
https://docs.arduino.cc/language-reference/en/structure/comparison-operators/lessThanOrEqualTo/
最終更新日
August 16, 2026