Skip to content
This repository was archived by the owner on May 8, 2022. It is now read-only.

Number formater #34

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Number formater #34

wants to merge 2 commits into from

Conversation

Liador
Copy link
Contributor

@Liador Liador commented Nov 14, 2018

No description provided.

Copy link
Contributor

@Kern046 Kern046 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il faut que tu aères beaucoup plus ton code et que tu respectes les guidelines sur l'indentation, le respect des accolades etc..

Sinon la méthode formatNumber est beaucoup trop grosse et complexe il faudrait que tu la découpes en plusieurs fonctions plus petites

}
if(decimalNumber <= decimalSize) {
numberLength = newNumber.toString().length-decimalNumber;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}

if(decimalNumber <= decimalSize) {
numberLength = newNumber.toString().length-decimalNumber;
}
else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
else {
} else {

decimalNumber=decimalSize;
numberLength= newNumber.toString().length-decimalNumber;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pareil ici

numberTemp=Math.floor(numberTemp);

cpt = 0;
while (cpt<numberLength)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remonte l'accolage d'une ligne

:" ")
:"")
;
(Math.floor(currentNumberOfTimeUnit)>0||stringSize>0)?stringSize++:cpt=cpt;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usine à gaz de la mort sur ces lignes, aère ton code :)

@Kern046 Kern046 force-pushed the develop branch 9 times, most recently from 9c26d06 to e9c0657 Compare February 21, 2019 18:10
@Kern046 Kern046 force-pushed the develop branch 3 times, most recently from f1ef68b to 3b8b34b Compare March 3, 2019 23:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants