FLUTTER ECOSYSTEM

close2/mod97

ISO7064で指定された通り、渡された数値のMOD 97 10を計算します。

mod97 のプロジェクト画像
Stars
0
Forks
1
最終プッシュ(UTC)
2021/03/09
プロジェクト状態
公開中
Christian Loitsch GitHub avatar
GITHUB User

Christian Loitsch ↗

Austria
言語Dart

技術トピック

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 1 件
  • test開発用>1.16.0 <2.0.0

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

mod97

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

Build Status

Usage

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.