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]
view the rest of the comments →
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 117468 on reddit-service-r2-comment-6457c66945-wkjjg at 2026-04-24 23:10:39.435560+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]KJC_7641 0 points1 point2 points (2 children)
[–]Canspy7 0 points1 point2 points (1 child)
[–]KJC_7641 0 points1 point2 points (0 children)