当前位置

首页 > 商务英语 > 实用英语 > MOD的用法

MOD的用法

推荐人: 来源: 阅读: 1.9W 次

MOD是英文单词modification(意为修改)的缩写,汉语音译作“模组”,也称游戏模组,MOD的用法有哪些呢?本文是本站小编整理MOD的用法的资料,仅供参考。

MOD的用法
  MOD的用法

Mod 运算符

用来对两个数作除法并且只返回余数。

语法

result = number1 Mod number2

Mod 的语法具有以下几个部分:

部分 描述

result 必需的;任何数值变量。

number1 必需的;任何数值表达式。

number2 必需的;任何数值表达式。

说明

在进行 Mod 运算或求余数运算时,该运算符将 number1 用 number2 除(将浮点数字四舍五入成整数),并把余数作为 result 的值返回。例如,在下列表达式中,A (result) 等于 5。

A = 19 Mod 6.7

一般说来,不管 result 是否为一个整数,result 的数据类型为 Byte,Byte 变体、Integer、Integer 变体、Long 或一个包含 Long 的 Variant。任何小数部分都被删除。但是,如果任何一个 Null,类型的表达式出现时,result 都将是 Null。任何 Empty 类型表达式都作为 0 处理。

  Excel中mod函数的用法及实例详解

Excel中mod函数是一个求余函数。返回两数相除的余数。结果的符号与除数相同。 mod函数的语法为:MOD(number,divisor)

MOD函数使用大致分为下面两种情况。

一、两个异号整数求余

1.函数值符号规律(余数的符号)

mod(负,正)=正

mod(正,负)=负

结论:两个整数求余时,其值的符号为除数的符号。

2.取值规律

先将两个整数看作是正数,再作除法运算

①能整除时,其值为0

②不能整除时,其值=除数×(整商+1)-被除数

例:mod(5,-4)=-3

即:5除以4的整数商为1,加1后为2;其与除数之积为8;再与被除数之差为(5-8=-3);取除数的符号。所以值为-3。

MOD(5,4)=1

  mod的例句

1

The MOD gave an undertaking to Saville that it had provided him with all relevant material.

国防部向萨维尔保证已向他提供了所有相关的资料。

2

The house is spacious with all mod cons, handy for the station and has a garden.

这座房子十分宽敞,现代化生活设施一应俱全,距离车站很近,而且还有一个花园。

3

That's all there is to setting up Apache and mod_python for deploying Django to a production Web server.

现在已经完全设置好Apache和mod python,您可以将Django应用程序部署到生产Web服务器了。

4

Drupal uses Apache's mod_rewrite to enable customizable URLs that are both user-and search-engine friendly.

Drupal使用Apache的mod rewrite产生对用户和搜索引擎友好的可定制URL。

5

For the IBM HTTP server and Apache Web servers, the mod_gzip module can be used.

对于IBM HTTP服务器和Apache Web服务器,可以使用mod gzip模块。

6

Added the description to the MOD documentation of how you can exit the MOD tools.

添加了关于如何退出MOD工具的描述到MOD文档中。

7

We will now look at how to deploy to a server running Apache and mod_python.

我们现在看看如何将Django应用程序部署到运行Apache和mod python的服务器。

8

Apache's mod_rewrite is the most widely known example of this approach.

Apache的mod rewrite是这类工具中最常用的一种。

9

What's with the naming system between CS retail and CS mod?

零售版和升级版在系统中的名字是什么?

10

You also learned how to create a Pyjamas-based application using Pyjamas, mod_python, and Python JSON-RPC.

还学习了如何使用Pyjamas、mod python和Python JSON-RPC创建基于Pyjamas的应用程序。

看了MOD的用法的人还看了:

l中mod函数的使用方法

2.怎么在excel中使用mod函数

l中row函数怎么使用

l中mod函数在表格的操作使用

l中row函数怎么用图文教程

l中进行对函数用法的详细讲解

l求余函数公式怎样使用