[issue41822] Document the meaning of values for sys.float_info.rounds

2020-10-18 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Here's a link:  http://c0x.coding-guidelines.com/5.2.4.2.2.html

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41822] Document the meaning of values for sys.float_info.rounds

2020-10-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Oh, seems it was what Raymond proposed initially.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41822] Document the meaning of values for sys.float_info.rounds

2020-10-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Python does not set the meaning and the value of these fields itself. It 
exposes C constants. Should we just copy definitions from corresponding C or 
floating-point standards?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41822] Document the meaning of values for sys.float_info.rounds

2020-10-18 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Also, we should document the meaning of the other fields.  Several of them are 
not self explanatory:

min_10_exp = -307

   does not mean that 2.3e-308 isn't normalized

   does mean that 10**-307 is normalized and 10**-308 isn't


min_exp = -1021

   does not mean that 2**-1021 is the lowest normalized value

   does mean ldexp(0.5, -1021) == float_info.min


decimal_dig = 15

   does not mean digits required to specify every unique float

   does mean, "number of decimal digits, q, such that any 
   floating-point number with q decimal digits can be rounded
   into a floating-point number with p radix b digits and back
   again without change to the q decimal digits"

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41822] Document the meaning of values for sys.float_info.rounds

2020-10-12 Thread Emmanuel Arias


Change by Emmanuel Arias :


--
nosy: +eamanu

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41822] Document the meaning of values for sys.float_info.rounds

2020-09-26 Thread Rahul Kumaresan


Change by Rahul Kumaresan :


--
nosy: +rahul-kumi

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41822] Document the meaning of values for sys.float_info.rounds

2020-09-25 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
title: Document the mean of values for sys.float_info.rounds -> Document the 
meaning  of values for sys.float_info.rounds
versions: +Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com