网站首页  情感咨询  情感美文  情感百科  情感生活  学习充电  旧版美文

请输入您要查询的词汇:

 

词汇 Modulo Operator
分类 英语词汇 英语翻译词典
释义

Modulo Operator

中文百科

模除 Modulo operation

(重定向自Modulo Operator)

模除是一种不具交换性的二元运算。

a=b q+r,q是整数,并使其达到最大,此时我们说a模除b等于r。(r为非负数)

以数学式子表示:a模除b =a-\left \lfloor \frac{a}{b} \right \rfloor \times b

例如要计算100模除16,由于100/16是一个大于6且不大于7的数,取q=6。100-16*6=4,而4就是答案。

英语百科

Modulo operation 模除

(重定向自Modulo Operator)
Quotient (red) and remainder (green) functions using different algorithms

In computing, the modulo operation finds the remainder after division of one number by another (sometimes called modulus).

Given two positive numbers, a (the dividend) and n (the divisor), a modulo n (abbreviated as a mod n) is the remainder of the Euclidean division of a by n. For instance, the expression "5 mod 2" would evaluate to 1 because 5 divided by 2 leaves a quotient of 2 and a remainder of 1, while "9 mod 3" would evaluate to 0 because the division of 9 by 3 has a quotient of 3 and leaves a remainder of 0; there is nothing to subtract from 9 after multiplying 3 times 3. (Note that doing the division with a calculator will not show the result referred to here by this operation; the quotient will be expressed as a decimal fraction.)

随便看

 

依恋情感网英汉例句词典收录3870147条英语例句词条,基本涵盖了全部常用英语单词的释义及例句,是英语学习的有利工具。

 

Copyright © 2004-2024 Yiyi18.com All Rights Reserved
京ICP备2021023879号 更新时间:2025/8/5 9:44:20