Python Forum
float.hex() is one bit short
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
float.hex() is one bit short
#5
well the whole point is moot. float.hex() produces sufficient output to represent the complete precision of a float value (same as a double in C) for the x86 architecture. i have not tested other architectures, yet. i counted only the digits to the right of the decimal point because i had been working with those in some code and my mind focused too tightly when checking that.

i should write some code that runs some float maths to discover that true precision (BTDT in C (and asm for x86, Sparc, and S/370) and found a gcc bug many years ago when doing that) instead of using the implementation architecture configuration.
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
float.hex() is one bit short - by Skaperen - Jul-26-2017, 01:23 AM
RE: float.hex() is one bit short - by nilamo - Jul-26-2017, 02:09 AM
RE: float.hex() is one bit short - by Skaperen - Jul-26-2017, 02:17 AM
RE: float.hex() is one bit short - by nilamo - Jul-26-2017, 02:28 AM
RE: float.hex() is one bit short - by Skaperen - Jul-26-2017, 03:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  python calculate float plus float is incorrect? sirocawa 6 322 Apr-16-2024, 01:45 PM
Last Post: DeaD_EyE
  Short code for EventGhost not working Patricia 8 3,713 Feb-09-2021, 07:49 PM
Last Post: Patricia
  How can I make a short-key in Spyder (Python IDE)? moose 3 2,699 Nov-02-2020, 12:13 PM
Last Post: jefsummers
  Short font question Pizzas391 9 3,319 Nov-27-2019, 05:57 PM
Last Post: ichabod801
  Comaparing Float Values of Dictionary Against A Float Value & Pick Matching Key firebird 2 3,403 Jul-25-2019, 11:32 PM
Last Post: scidam
  short way to combine tuples and int's Annie 6 4,557 Jun-16-2017, 02:35 AM
Last Post: Annie

Forum Jump:

User Panel Messages

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