Made decimals more nice and clear.

This commit is contained in:
softsimon 2020-03-04 15:55:54 +07:00
parent 7186426441
commit 9851ae7169
3 changed files with 4 additions and 3 deletions

View File

@ -50,12 +50,12 @@
<ng-template [ngIf]="fees" [ngIfElse]="loadingFees">
<tr>
<td>Total fees</td>
<td>{{ fees | number: '1.2-8' }} BTC (<app-fiat [value]="fees * 100000000"></app-fiat>)</td>
<td><span title="{{ fees | number: '1.2-8' }} BTC">{{ fees | number: '1.2-2' }} BTC</span> (<app-fiat [value]="fees * 100000000" digitsInfo="1.0-0"></app-fiat>)</td>
</tr>
<tr>
<td>Reward + fees:</td>
<td>
{{ blockSubsidy + fees | number: '1.2-8' }} BTC (<app-fiat [value]="(blockSubsidy + fees) * 100000000"></app-fiat>)
<span title="{{ blockSubsidy + fees | number: '1.2-8' }} BTC">{{ blockSubsidy + fees | number: '1.2-2' }} BTC</span> (<app-fiat [value]="(blockSubsidy + fees) * 100000000" digitsInfo="1.0-0"></app-fiat>)
</td>
</tr>
</ng-template>

View File

@ -1 +1 @@
<span class="green-color">{{ (conversions$ | async)?.USD * value / 100000000 | currency:'USD':'symbol':'1.2-2' }}</span>
<span class="green-color">{{ (conversions$ | async)?.USD * value / 100000000 | currency:'USD':'symbol':digitsInfo }}</span>

View File

@ -12,6 +12,7 @@ export class FiatComponent implements OnInit {
conversions$: Observable<any>;
@Input() value: number;
@Input() digitsInfo = '1.2-2';
constructor(
private stateService: StateService,