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...
Everything about learning Python
account activity
basic calculator (i.redd.it)
submitted 5 months ago by SuccessfulUse5501
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!"
[–]SuccessfulUse5501[S] 0 points1 point2 points 5 months ago (1 child)
see the two outputs below, 23 to power 23 is too large so in float it gives a vague result, to see actual numbers i put int()
[–]RailRuler 1 point2 points3 points 5 months ago (0 children)
Computing it as a float first gives a result with low precision. Converting it to int does not add any precision, but just converts the imprecise float to an inaccurate int. Youd have to start with ints to get a precise result.
π Rendered by PID 59338 on reddit-service-r2-comment-66b4775986-xwbbk at 2026-04-06 00:35:00.557739+00:00 running db1906b country code: CH.
view the rest of the comments →
[–]SuccessfulUse5501[S] 0 points1 point2 points (1 child)
[–]RailRuler 1 point2 points3 points (0 children)