商務英語實用英語

MOD的用法

本文已影響 1.99W人 

MOD是英文單詞modification(意爲修改)的縮寫,漢語音譯作“模組”,也稱遊戲模組,MOD的用法有哪些呢?本文是本站小編整理MOD的用法的資料,僅供參考。

ing-bottom: 133.33%;">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求餘函數公式怎樣使用

猜你喜歡

熱點閱讀

最新文章

推薦閱讀