Base-n Command
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 49/100
Research direction
Start by reading the command parsing and macro code mentioned in the planning notes, then trace how numbers are currently parsed and formatted. Check Rug's parse_radix and to_string_radix APIs for bases 2 through 36. Done means an optional !base=12 command changes both accepted digits and number output to the selected base; the issue does not name specific files or tests.
Written by the indexing model from the issue text.
Description
Description
A Command like "!base=12" could be available per base, which makes the bot read and write numbers in that base.
Reasoning
There have been multiple instances in which a factorial of a non-decimal number was wanted.
Resources
- Requested here: https://www.reddit.com/r/unexpectedfactorial/s/fscyC9tS5p
Planning
Rug supports any Radix between 2 and 36 with parse_radix and to_string_radix (maybe some formatting Option alternative?). We would need to change what is accepted as a digit in parsing (dynamic) and add a Command supporting an Optional Number -> change macro.
- Dominant language
- Rust
- Stars
- 51
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tolik518/factorion-bot
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
tolik518/factorion-bot#347 · 7 comments ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
tolik518/factorion-bot#328 · 3 comments ·
-
enhancement proposal
Difficulty 5/5 Over a week Newbie friendliness 25/100
tolik518/factorion-bot#316 · 4 comments ·
-
reddit-bot
Difficulty 4/5 3-5 days Newbie friendliness 42/100
tolik518/factorion-bot#268 · 2 comments ·
-
TranslationsOpenenhancement
Difficulty 2/5 1-2 days Newbie friendliness 42/100
tolik518/factorion-bot#262 · 14 comments ·
All issues in tolik518/factorion-bot
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
area: compat area: parsing bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
reubeno/brush#1526 · 1 comment ·
Maintainers usually reply within 1 day
-
Volume eject does not refuse system, root or /home mountsPossibly taken @bernardopg claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
spacedriveapp/spacedrive#3159 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100