[Python-ideas] math.nextafter
M.-A. Lemburg
mal at egenix.com
Mon Feb 6 05:29:17 EST 2017
On 04.02.2017 12:59, Stephan Houben wrote:
> Hi all,
>
> Visual C++ 2015 supports this one:
>
> https://msdn.microsoft.com/en-us/library/h0dff77w.aspx
>
> In any case, this is easy to implement an efficient fallback in C, unlike
> the fma() function we discussed some time ago.
>
> To put this in a bit wider perspective: would it be useful to investigate
> how much of the C99 math library could
> be supported in Python in general?
+1 from me for those features which can be emulated for
platforms which don't have the math lib function
available and are not too esoteric (though many of those
have already been added), e.g. cbt() may be useful.
Now, with respect to the one mentioned in the subject,
I'm not sure how useful this would be in the stdlib,
since it's very much tied to whatever float type Python
happens to use on a platform.
Juraj: Could you provide some use cases, where such a function
would help in Python applications ? (I can see use cases
written in C, but due to the low level, find it hard to
believe that people would use this at the Python level)
Thanks,
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Experts (#1, Feb 06 2017)
>>> Python Projects, Coaching and Consulting ... http://www.egenix.com/
>>> Python Database Interfaces ... http://products.egenix.com/
>>> Plone/Zope Database Interfaces ... http://zope.egenix.com/
________________________________________________________________________
::: We implement business ideas - efficiently in both time and costs :::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
http://www.egenix.com/company/contact/
http://www.malemburg.com/
More information about the Python-ideas
mailing list