Open numpy-gitbot opened 11 years ago
atmention:mwiebe wrote on 2012-03-12
I seem to recall that the finfo code is using an algorithm that automatically detects these parameters by manipulating values of the given dtype. I guess either there's something wrong with the algorithm, or the long double on that platform is extremely non-conformant.
atmention:charris wrote on 2012-03-12
The algorithm (which is kind of a mess) assumes an exponent/mantissa format, while the PPC long double is implemented using two doubles. I'm not even sure if eps really makes sense for it. I'd almost be inclined to hard code these values except that they may depend on compiler flags.
Original ticket http://projects.scipy.org/numpy/ticket/2077 on 2012-03-10 by atmention:matthew-brett, assigned to unknown.
I think the correct answers for nexp, nmant are 11, 106 respectively; see: https://developer.apple.com/library/mac/#documentation/Darwin/Reference/Manpages/man3/float.3.html