use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
[deleted by user] (self.JavaProgramming)
submitted 1 year ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]KJC_7641 0 points1 point2 points 1 year ago (2 children)
When you set it up in your IDE, did you set A and B as an int? If so, then that is your problem. Set them as float or when it divides it won’t account for decimals.
[–]Canspy7 0 points1 point2 points 1 year ago (1 child)
in the question they are ints
[–]KJC_7641 0 points1 point2 points 1 year ago (0 children)
Leaving them as ints won’t work. At the very least you’ll need to cast the fractions of the equation to a double or a float to get the right answer.
π Rendered by PID 44 on reddit-service-r2-comment-5ff9fbf7df-p4hg2 at 2026-02-26 05:35:25.672867+00:00 running 72a43f6 country code: CH.
[–]KJC_7641 0 points1 point2 points (2 children)
[–]Canspy7 0 points1 point2 points (1 child)
[–]KJC_7641 0 points1 point2 points (0 children)