LoginSignup
0
0

More than 3 years have passed since last update.

【チェックディジット】モジュラス11 ウエイト2~9を求める

Posted at

チェックディジットとは

データがおかしくないかを確かめるために使う。元データに追加される数字や記号

モジュラスとは

係数のこと。 チェックデジット計算の際、この用語が使われる
引用:モジュラスとは何? Weblio辞書

モジュラス11 ウエイト2~9の計算方法

例:00010001000700

数値 0 0 0 1 0 0 0 1 0 0 0 7 0 0
係数 7 6 5 4 3 2 9 8 7 6 5 4 3 2
0 0 0 4 0 0 0 8 0 0 0 28 0 0

積の合計:4+8+28 = 40
余り:40 / 11 = 3 余り 7

上記より
チェックディジット:11 - 7 = 4

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0