import type Decimal from "break_infinity.js" ; import { AbstractInfixNotation } from "./infix-abstract" ; import { toSubscript } from "../utils" ; export class InfixEngineeringReverseNotation extends AbstractInfixNotation { public readonly name : string = "Reverse infix engineering" ; public formatNegativeDecimal ( value , places ) { return `₋${ this . formatDecimal ( value , places ) }` ; } protected formatMantissa ( digit ) { return toSubscript ( digit ) ; } protected formatExponent ( exp ) { return exp . toString ( 10 ) ; } }