Search packages, repositories and app categories

GitHub repositoryclose2/mod97

mod97

Calculates the MOD 97 10 of the passed number as specified in ISO7064.

mod97 project cover
Stars
0
Forks
1
Last push (UTC)
Mar 9, 2021
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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.

Christian Loitsch GitHub avatar
GitHub author

Christian Loitsch ↗

Austria
LanguagesDart

Categories

Packages published by this repository

Dependencies used

Dependency list 1 items

  • testDevelopment>1.16.0 <2.0.0

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗