SpellNumber
SpellNumber copied to clipboard
Method suggestions
@shaedrich Thank you for this comment, could you give me an example of how you imagine them and what the outputs would be, please.
$input = SpellNumber::integer(2);
$input->toLatinateOrdinal(); // "secondary"
$input->toAdverbial(); // "twice" as in "twice as good"
$input->toMultiplier(); // "twofold"
$input->toLatinateMultiplier(); // "double" as in "double the amount"
$input->toDistributive(); // "doubly"
$input->toMetricCollectivePrefix(); // "double-"
$input->toLatinateCollectivePrefix(); // "bi-" as in "bi-weekly"
$input->toFractional(); // "half" as in "half as good"
$input->toMetricFractionalPrefix(); // "demi-" as in "demi-god"
$input->toLatinateFractionalPrefix(); // "semi-" as in "semipermeable"
$input = SpellNumber::value(3200);
$input->toScientificNotation(); // 3.2e3 or 3.2e-3 or 3.2E-3
$input->toEngineeringNotation(); // aliases
$input->toENotation(); // aliases