import Decimal from "break_infinity.js" ; import { Notation } from "../notation" ; export class NiceNotation extends Notation { public get name ( ) : string { return "Nice" ; } public formatDecimal ( value , places ) { return value . log ( 69 ) . toFixed ( Math . max ( 2 , places ) ) . replace ( "-" , "^" ) ; } public get infinite ( ) : string { return "69420" ; } public formatUnder1000 ( value , places ) { return this . formatDecimal ( new Decimal ( value ) , places ) ; } }