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 ↗