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

9 lines
233 B
TypeScript

import { Pipe, PipeTransform } from '@angular/core';
@Pipe({ name: 'tokenRatio' })
export class TokenRatioPipe implements PipeTransform {
transform(value: any = 0, ...args): any {
return Number(value) / Math.pow(10, 6);
}
}