當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Processing >= (greater than or equal to)用法及代碼示例

Processing, >= (greater than or equal to)用法介紹。

用法

  • value1 >= value2

參數

  • value1 int、float、char 或 byte
  • value2 int、float、char 或 byte

說明

測試左邊的值是否大於右邊的值或值是否相等。

例子

int a = 23;
int b = 23;
if (a >= b) {
  println("variable a is greater or equal to variable b ")
}

相關用法


注:本文由純淨天空篩選整理自processing.org大神的英文原創作品 >= (greater than or equal to)。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。