Skip to content
/ Mbn Public

Library for PHP and JS to do calculations with any precision and correct (half-up) rounding

License

Notifications You must be signed in to change notification settings

mblajek/Mbn

Repository files navigation

Mbn (Multi-byte number) Library

Library for PHP and JS to do calculations with any precision and correct (half-up) rounding

Project page: https://mbn.li

Available for PHP Composer: https://packagist.org/packages/mblajek/mbn
Available for JS npm: https://www.npmjs.com/package/mblajek-mbn

Repository contains
    library files
    home page
    simple PWA calculator
    dockerfiles with supported environments
    and some tools for:
        updating page from GitHub
        testing php and js versions
        preparing library files to download

Page needs env interface in env.php file:

interface env {
    const ssl = false; // redirect to ssl
    const docker = true; // docker environment for testing all versions from docker-compose
    // url to GitHub repository zip download
    const githubZip = 'https://github.com/mblajek/Mbn/archive/refs/heads/master.zip';
    // Closure Compiler
    const githubCcJar = 'https://github.com/mblajek/RequiredFiles/raw/master/closure-compiler-v20201207.jar';
}

Code is optimized for speed and size; not for readability
Library is PHP 5.4 compatible, so entire repository is limited to PHP 5.4

About

Library for PHP and JS to do calculations with any precision and correct (half-up) rounding

Topics

Resources

License

Stars

Watchers

Forks

Languages