Difference between revisions of "Modulo (LogiX node)/ja"
Jump to navigation
Jump to search
(Created page with "== ノードメニュー ==") |
(Updating to match new version of source page) |
||
Line 26: | Line 26: | ||
[[Category:LogiX{{#translation:}}|%]] | [[Category:LogiX{{#translation:}}|%]] | ||
[[Category:LogiX:Operators{{#translation:}}|%]] | [[Category:LogiX:Operators{{#translation:}}|%]] | ||
− | {{:NodeMenu-Operators | + | {{:NodeMenu-Operators}} |
Latest revision as of 02:34, 20 February 2022
% | ||
---|---|---|
Inputs | ||
Float | A | |
Float | B | |
Outputs | ||
Float | * |
% ノードは、AをBで割った余りを出力します。
使用方法
上の入力は割られる数、下の入力は割る数です。割った余りを返します。
例
モジュロ演算の一例。ここでは、余りは7です。
%(Modulo)ノードを使って、ある数字が偶数か奇数かを判断することができます。0 は偶数、1 は奇数を表します。