Processing, / (divide)
用法介紹。
用法
value1 / value2
參數
value1
int 或浮點數value2
int 或浮點數,但不為零(不可能被零除)
說明
將第一個參數的值除以第二個參數的值。等式 20 /4 的答案是 5。數字 20 是數字 5 的四次出現的總和。作為等式,我們看到 5 + 5 + 5 + 5 = 20。
例子
int g = 50 / 5; // Assigns 10 to 'g'
int h = g / 5; // Assigns 2 to 'h'
相關用法
- Processing // (comment)用法及代碼示例
- Processing /** */ (doc comment)用法及代碼示例
- Processing /* */ (multiline comment)用法及代碼示例
- Processing /= (divide assign)用法及代碼示例
- Processing FFT用法及代碼示例
- Processing SawOsc.pan()用法及代碼示例
- Processing FloatDict用法及代碼示例
- Processing FFT.stop()用法及代碼示例
- Processing join()用法及代碼示例
- Processing () (parentheses)用法及代碼示例
- Processing Pulse用法及代碼示例
- Processing PShader用法及代碼示例
- Processing PVector.set()用法及代碼示例
- Processing FloatDict.sortKeysReverse()用法及代碼示例
- Processing texture()用法及代碼示例
- Processing IntDict.add()用法及代碼示例
- Processing PShape.enableStyle()用法及代碼示例
- Processing FloatDict.sub()用法及代碼示例
- Processing String用法及代碼示例
- Processing PImage.pixels[]用法及代碼示例
- Processing vertex()用法及代碼示例
- Processing PVector.mag()用法及代碼示例
- Processing thread()用法及代碼示例
- Processing Capture.stop()用法及代碼示例
- Processing Env.play()用法及代碼示例
注:本文由純淨天空篩選整理自processing.org大神的英文原創作品 / (divide)。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。