AlexAegis/loreplotter

View on GitHub
src/app/pipe/math-round.pipe.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Pipe, PipeTransform } from '@angular/core';

@Pipe({ name: 'mathRound' })
export class MathRoundPipe implements PipeTransform {
    public transform(t: number): number {
        return Math.round(t);
    }
}