cic-staff-client/src/app/shared/_pipes/token-ratio.pipe.ts

9 lines
233 B
TypeScript
Raw Normal View History

2021-05-10 18:15:25 +02:00
import { Pipe, PipeTransform } from '@angular/core';
2021-05-10 18:15:25 +02:00
@Pipe({ name: 'tokenRatio' })
export class TokenRatioPipe implements PipeTransform {
transform(value: any = 0, ...args): any {
return Number(value) / Math.pow(10, 6);
}
}