v1.0.0
mod97
97のモジュロを計算します。
0いいね 2.7万30日間ダウンロード150Pub ポイント
AndroidiOSWebmacOSWindowsLinux
ISO7064で指定された通り、渡された数値のMOD 97 10を計算します。
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
Calculates the MOD 97 10 of the passed number as specified in ISO7064.
Only positive numbers are allowed.
I have copied this code from iban.js
A simple usage example:
import 'package:mod97/mod97.dart';
main() {
int m = mod97('1234567');
int m2 = mod97('-123', onError: (_) => 5);
// m2 will be 5
}
The input must be a String. Returned value is an integer.
Invalid characters throw a FormatException unless an onError
function is provided.
依存関係一覧 1 件
>1.16.0 <2.0.0用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗