[pypy-commit] cffi default: More doc for 'long double'.
arigo
noreply at buildbot.pypy.org
Wed Aug 1 14:03:33 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r757:82f2e0a4b7a2
Date: 2012-08-01 14:01 +0200
http://bitbucket.org/cffi/cffi/changeset/82f2e0a4b7a2/
Log: More doc for 'long double'.
diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -984,9 +984,10 @@
.. versionadded:: 0.3
(***) ``long double`` support.
- Such numbers are passed around in a cdata object to avoid loosing
+ Such a number is passed around in a cdata object to avoid loosing
precision, because a normal Python floating-point number only contains
- enough precision for a ``double``. If you want to operate on such numbers
+ enough precision for a ``double``. To convert it to a regular float,
+ call ``float()``. If you want to operate on such numbers
without any precision loss, you need to define and use a family of C
functions like ``long double add(long double a, long double b);``.
More information about the pypy-commit
mailing list