Giter Site home page Giter Site logo

lordazzi / calc-js Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 4.0 713 KB

Handle JavaScript operations, avoiding the native problems of the language

License: MIT License

JavaScript 0.42% TypeScript 97.36% Dockerfile 0.84% Shell 1.38%
javascript typescript calc-js calculations bigdecimal angular ieee754 ieee-754 ieee-problem floating-point-arithmetic floating-point-accuracy-problems react

calc-js's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

calc-js's Issues

Include pipe method

Include pipe method to incude other math operation in the equation, like:

function toPercent(amount: number, total: number): number {
    return new Calc(amount, { throwUnsafeNumber: false }).divide(total).multiply(100).pipe(n => Math.round(n)).finish();
}

Define is not defined

When we tried this package for our Next.js application (With SSR) we got an error on render

Define is not defined

Schermafbeelding 2019-08-02 om 11 55 55

It's coming from the library, but we are not sure where from. It's probably an issue with something being used that's not available in node.js, since we're getting it on page reload but not when the app was already mounted.

Are there any plans to support server side rendering?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.