import type Decimal from "break_infinity.js" ; import { Notation } from "../notation" ; export class YesNoNotation extends Notation { public get name ( ) : string { return "YesNo" ; } public get negativeInfinite ( ) : string { return "YES" ; } public get infinite ( ) : string { return "YES" ; } public formatVerySmallNegativeDecimal ( x ) { return x . neq ( 0 ) ? "YES" : "NO" ; } public formatVerySmallDecimal ( x ) { return x . neq ( 0 ) ? "YES" : "NO" ; } public formatNegativeUnder1000 ( x ) { return x !== 0 ? "YES" : "NO" ; } public formatUnder1000 ( x ) { return x !== 0 ? "YES" : "NO" ; } public formatNegativeDecimal ( x ) { return x . neq ( 0 ) ? "YES" : "NO" ; } public formatDecimal ( x ) { return x . neq ( 0 ) ? "YES" : "NO" ; } }