src/app/shared/_pipes/token-ratio.pipe.ts
Name | tokenRatio |
transform | |||||||||
transform(value: any, ...args: any[])
|
|||||||||
Defined in src/app/shared/_pipes/token-ratio.pipe.ts:5
|
|||||||||
Parameters :
Returns :
any
|
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({ name: 'tokenRatio' })
export class TokenRatioPipe implements PipeTransform {
transform(value: any, ...args): any {
return Number(value) / Math.pow(10, 6);
}
}