How to read the Modulo operator in a formula


Because I am a programmer, I have been reading tutorials and manuals about
programming in Japanese.

For the most part I am ok with all of the terminology, both from the computing
side and maths side.

However I have just been reading about the Modulo Operator `(剰余演算子)` and have
no idea how to read in in a formula.

For example `加算` means `Addition`, but you would read the `加算演算子` as `足す` in a
formula like `1 + 2 = 3`.

I know that 剰余 means Remainder (or modulus), but I doubt you would say that
when reaidng a formula. All I can think of for example is:

[code]

    4 % 2 = 0
    よん　モジュロ　に　は　れい/ゼロ
    
[/code]

Any help would be appreciated.




<http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1122105076>

> mod は、modulo(モジュロ) の省略で、モッドと読みます。

Someone deleted his answer but he was also right in a way.

`a % b` is also read `a を b で割った余り`.




The word `modulo` is read `モジュロ`, while the abbreviation `mod` is read `モッド`.
In many programming languages, the modulo operator is written with a symbol
such as `%`, but it still _represents_ either `modulo` or `mod`, so you could
read the symbol either way.

[code]

    Written form        Reading
    -----------------   --------------------
    x modulo y          x モジュロ y
    x mod y             x モッド y
    x % y               x モジュロ y     OR     x モッド y
    
[/code]

