FLUTTER ECOSYSTEM

close2/mod97

Berechnet die MOD 97 10 der übergebenen Zahl gemäß ISO7064.

Projektcover von mod97
Stars
0
Forks
1
Letzter Push (UTC)
09.03.2021
Projektstatus
Aktiv
Christian Loitsch GitHub avatar
GITHUB User

Christian Loitsch ↗

Austria
SprachenDart

Technische Themen

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 1 Einträge
  • testEntwicklung>1.16.0 <2.0.0

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

Projekt-README ein-/ausklappen

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.