Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method suggestions #24

Closed
shaedrich opened this issue Nov 21, 2023 · 2 comments
Closed

Method suggestions #24

shaedrich opened this issue Nov 21, 2023 · 2 comments
Assignees

Comments

@shaedrich
Copy link

grafik
(see Appendix:English numerals)

+ Scientific notation/engineering notation/E notation

@rmunate rmunate self-assigned this Nov 21, 2023
@rmunate
Copy link
Owner

rmunate commented Nov 21, 2023

@shaedrich Thank you for this comment, could you give me an example of how you imagine them and what the outputs would be, please.

@shaedrich
Copy link
Author

$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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants