Skip to content

Commit

Permalink
Spaces in code
Browse files Browse the repository at this point in the history
  • Loading branch information
ratajs committed Aug 28, 2023
1 parent de95f6e commit ea0e3c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AdvDiv.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ function advdiv(n1, n2, minstr, decstr, rstr1, rstr2) {
if(nstring.indexOf(".") > -1 && nstring.indexOf(".")==nstring.length - 2)
return nstring.replace(".", "");
if(nstring.indexOf(".") > -1)
return nstring.split(".")[0] + nstring.split(".")[1].split("")[0] + "." + nstring.split(".")[1].slice(1);
return nstring + "0";
return nstring.split(".")[0]+nstring.split(".")[1].split("")[0]+"."+nstring.split(".")[1].slice(1);
return nstring+"0";
};

while(n2.indexOf(".") > -1) {
Expand Down

0 comments on commit ea0e3c7

Please sign in to comment.