首页 > 文档 > * (multiply) 乘
2017
07-21

* (multiply) 乘

名称:* (multiply)

 

例子:

int e = 50 * 5;  // Sets ‘e’ to 250
int f = e * 5;   // Sets ‘f’ to 1250

 

描述:

Multiplies the values of the two parameters. Multiplication is equivalent to a sequence of addition. For example 5 * 4 is equivalent to 5 + 5 + 5 + 5.

乘以两个参数的值。 乘法相当于一个加法序列。 例如5 * 4相当于5 + 5 + 5 + 5。

 

语法:

value1 * value2

 

参数:

value1 int, float, byte, or char
value2 int, float, byte, or char

 

相关:

+ (add)
/ (divide)

 



最后编辑:
作者:Hewes
这个作者貌似有点懒,什么都没有留下。

* (multiply) 乘》有 1 条评论

  1. Pingback 引用通告: / (divide) 除 | Processing编程艺术

留下一个回复

你的email不会被公开。