Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing comma in "dec" function #7

Open
paquinmathieu opened this issue Apr 12, 2023 · 0 comments
Open

missing comma in "dec" function #7

paquinmathieu opened this issue Apr 12, 2023 · 0 comments

Comments

@paquinmathieu
Copy link

paquinmathieu commented Apr 12, 2023

this line is missing in the second if

     res += '.';
        if ( ! flo && diff ) {
          res += '.';
          for ( let i = 0; i < diff; i++ ) {
            res += '0';
          }
        }

        if ( flo && diff > 0 ) {
          for ( let i = 0; i < diff; i++ ) {
            res += '0';
          }
        }

should be change to

        if ( ! flo && diff ) {
          res += '.';
          for ( let i = 0; i < diff; i++ ) {
            res += '0';
          }
        }

        if ( flo && diff > 0 ) {
          res += '.';
          for ( let i = 0; i < diff; i++ ) {
            res += '0';
          }
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant