import Decimal from "break_infinity.js" ; import { Notation } from "../notation" ; import { ScientificNotation } from "../scientific" ; const scientific = new ScientificNotation ( ) ; export class MixedLogarithmSciNotation extends Notation { public get name ( ) : string { return "Mixed Logarithm (Sci)" ; } public formatDecimal ( value , places ) { if ( value . exponent < 33 ) { return scientific . formatDecimal ( value , places ) ; } return `e${ this . formatExponent ( value . log10 ( ) , places ) }` ; } }