#Calculator help

1 messages · Page 1 of 1 (latest)

frosty cloudBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

unkempt moss
sick river
#

@unkempt moss move your number parsing logic (which is duplicated in the code) to a function

#

then make the function able to parse either a number or a variable

unkempt moss
#

I updated my code, I needed help from chatgpt because im bad at this:

#

One problem I have now is that equations such as 28/-4 will return 0 instead of -7

#

Im not sure if its a precedence problem

frosty cloudBOT
#

This question is being automatically marked as stale.
If your question has been answered, run !solved.
If your question is not answered feel free to bump the post or re-ask.
Take a look at !howto ask for tips on improving your question.

unkempt moss
#

!solved

frosty cloudBOT
#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity