diff --git a/src/app/pipes/rai.pipe.ts b/src/app/pipes/rai.pipe.ts index a2afdef4..01cd75be 100644 --- a/src/app/pipes/rai.pipe.ts +++ b/src/app/pipes/rai.pipe.ts @@ -24,9 +24,9 @@ export class RaiPipe implements PipeTransform { if (hasRawValue) { // New more precise toFixed function, but bugs on huge raw numbers const newVal = value / this.mrai < 0.000001 ? 0 : value / this.mrai; - return `${this.toFixed(newVal, this.precision)}${!hideText ? ' NYANO' : ''}`; + return `${this.toFixed(newVal, 0)}${!hideText ? ' NYANO' : ''}`; } else { - return `${(value / this.mrai).toFixed(6)}${!hideText ? ' NYANO' : ''}`; + return `${(value / this.mrai).toFixed(0)}${!hideText ? ' NYANO' : ''}`; } case 'knano': return `${(value / this.krai).toFixed(3)}${!hideText ? ' knano' : ''}`; case 'nano': return `${(value / this.rai).toFixed(0)}${!hideText ? ' nano' : ''}`;