tolik518 / tolik518/factorion-bot

Use number from author, instead the rounded number when replying

Open
#185 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
51
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Current behavior.
Input: (-9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.8)!

Output

The factorial of -10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034299354973207483343162971394820890205522474892993011626001538519429066631303722514983667773532306267617595032614012391853191680944494422987550150496295613569487222909477404251056153316311923288545965414068434237817967090934529974234116691935118663494850042764558583424564479128183955448593942350145823369526981855953014535503311699654509969940349220391197276009222211942005706127603611142640847667821805568 is ∞̃

The bot (probably) should post the original string of the number from the comment instead

Source: https://www.reddit.com/r/unexpectedfactorial/s/BUtgEsyFKX

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the bot parses the author’s numeric input and formats the factorial reply, using the example input and output in the issue as the reproduction case. Done means the reply preserves the original number string instead of the rounded value while retaining the expected factorial result.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.