import type Decimal from "break_infinity.js" ; import { Notation } from "./notation" ; export class LogarithmNotation extends Notation { public get name ( ) : string { return "Logarithm" ; } public formatDecimal ( value , places ) { const log10 = value . log10 ( ) ; return `e${ this . formatExponent ( log10 , places , ( n , p ) => n . toFixed ( p ) ) }` ; } }