剰余演算
[Wikipedia|▼Menu]
□記事を途中から表示しています
[最初から表示]

左項は定義されていない。

^ ACUCOBOL、Micro Focus COBOLなどの実装。

^ たとえばファミリーベーシックのROMバージョン2.0Aでは、除数と被除数が等しい場合にMODの演算が正しく行われない。

出典^ “MSDN 剰余演算子 (%)”. マイクロソフト. 2015年12月9日閲覧。
^ “ ⇒ASCII.jpデジタル用語辞典 モジュロ”. ⇒http://ascii.jp/.+2015年12月9日閲覧。
^ 一般的な電卓を使用して除算を行う場合、商が小数点表記で出力されるので、剰余演算は直接行えないことに注意する。
^ Knuth, Donald. E. (1972). The Art of Computer Programming. Addison-Wesley 
^ Boute, Raymond T. (April 1992). ⇒“The Euclidean definition of the functions div and mod”. ACM Transactions on Programming Languages and Systems (TOPLAS) (ACM Press (New York, NY, USA)) 14 (2): 127?144. doi:10.1145/128861.128862. ⇒http://portal.acm.org/citation.cfm?id=128862&coll=portal&dl=ACM
^ Leijen, Daan (2001年12月3日). “ ⇒Division and Modulus for Computer Scientists” (PDF). 2014年12月25日閲覧。
^ Horvath, Adam (2012年7月5日). “ ⇒Faster division and modulo operation - the power of two”. 2015年12月9日閲覧。
^ .mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation.cs-ja1 q,.mw-parser-output .citation.cs-ja2 q{quotes:"「""」""『""』"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free a,.mw-parser-output .citation .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited a,.mw-parser-output .id-lock-registration a,.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription a,.mw-parser-output .citation .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:#d33}.mw-parser-output .cs1-visible-error{color:#d33}.mw-parser-output .cs1-maint{display:none;color:#3a3;margin-left:0.3em}.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}"ISO/IEC 14882:2003 : Programming languages -- C++" (Document). 5.6.4: ISO, IEC. 2003.. "二項演算子 % 左項を右項で割った余りを算出する。.... オペランドが共に負数でない場合は余りも負数ではない。しかし、そうでない場合の剰余の符号は実装によって定義される。"
^open-std.org, section 6.5.5
^CoffeeScript operators
^ “ ⇒Expressions”. D Programming Language 2.0. Digital Mars. 2010年7月29日閲覧。
^ “ ⇒Mod()”. PureBasic. Fantaisie Software. 2015年12月9日閲覧。
^ a br6rs.org
^ "ISO/IEC 9899:1990 : Programming languages -- C" (Document). 7.5.6.4: ISO, IEC. 1990. fmod関数は、yが0でない場合、iが整数となるx - i * yの結果を返す。結果はxと同じ符号となり、yよりも小さな絶対値をとる.

記事の検索
おまかせリスト
▼オプションを表示
ブックマーク登録
mixiチェック!
Twitterに投稿
オプション/リンク一覧
話題のニュース
列車運行情報
暇つぶしWikipedia

Size:36 KB
出典: フリー百科事典『ウィキペディア(Wikipedia)
担当:undef