new Decimal(a).times(b).plus(c) reads as a series of method calls. The decimal plugin reads it as arithmetic, and reads comparisons as comparisons, including their negations.
This plugin is also the worked example in Writing a plugin.
Examples
Arithmetic chains read left to right
English
Comparisons and their negations
English
Without the plugin
English
What it covers
new Decimal(x)reads asx.- Arithmetic:
plusandadd,minusandsub,timesandmul,divanddividedBy,toDecimalPlaces,toNumber.addis only claimed on anew Decimal(...)receiver, soset.add(x)is unaffected. - Conditions:
lt,lte,gt,gte,eq,equals,isZero,isNegative,isPositive.
Translating
The English phrasebook is exported asdecimalEn and typed as DecimalPhrases.