-
Notifications
You must be signed in to change notification settings - Fork 4
Number formater #34
base: develop
Are you sure you want to change the base?
Number formater #34
Conversation
There was a problem hiding this 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; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} |
if(decimalNumber <= decimalSize) { | ||
numberLength = newNumber.toString().length-decimalNumber; | ||
} | ||
else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else { | |
} else { |
decimalNumber=decimalSize; | ||
numberLength= newNumber.toString().length-decimalNumber; | ||
} | ||
} |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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 :)
9c26d06
to
e9c0657
Compare
f1ef68b
to
3b8b34b
Compare
No description provided.