-
Notifications
You must be signed in to change notification settings - Fork 60
Conform all numbers with comma - Closes #326 #339
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.
We must not round LSK to two floating places. LSK has 8 significant floating places and has to be displayed with that precision (if the all the floating places are used). In the future, the price of LSK can be much higher and more floating places are then important.
Also, this PR should not contain commit from the other PR (issue #321).
src/components/lsk/lsk.pug
Outdated
@@ -1,2 +1,2 @@ | |||
span(ng-bind='$ctrl.amount | lsk') | |||
span(ng-bind='$ctrl.amount | lsk | number:8') |
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.
number:8
is also not the answer as we don't want to show the trailing zeros.
100.00000000
should be 100
100.12300000
should be 100.123
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.
$ctrl.amount | lsk | number
might work
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.
Good job @yasharAyari
Use angular number filter in lisk and forging component to fix this issue.