Python Forum
f-strings round float down too much
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
f-strings round float down too much
#6
i've been think a lot about how i use numbers in life. i now realize i don't generally need them to be in decimal in most cases. i'm thinking i should just switch my life to hexadecimal. it's not hard to do in Python.

fyi, if you do, too, i recommend to not try to convert numbers to decimal to use them. just use them as they are. is 0xa90 < 0x9f0 True or False? did you need decimal to figure that out?

decimal is such a hassle.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
f-strings round float down too much - by Skaperen - Dec-29-2021, 12:16 AM
RE: f-strings round float down too much - by casevh - Dec-29-2021, 07:25 AM
RE: f-strings round float down too much - by casevh - Dec-29-2021, 04:13 PM
RE: f-strings round float down too much - by Skaperen - Dec-29-2021, 08:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  print a list strings is fast but printing the joined strings is slow Skaperen 9 4,135 Aug-26-2019, 07:48 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020