![](//d33sqmjvzgs8hq.cloudfront.net/wp-
content/themes/oneqt/assets/images/cookie_small.png)

We bake cookies in your browser for a better experience. Using this site means
that you consent. [Read More](//qt.io/terms-conditions/)

Menu

  * [ Partners ](//qt.io/partners/)
  * [ Blog ](https://blog.qt.io/)

[ ](https://qt.io/)

  * [Download](https://qt.io/download/)
  * [Device Creation](https://www.qt.io/qt-for-device-creation/)
  * [Application Development](https://www.qt.io/application-development/)
  * [Services](https://www.qt.io/services/)
  * [Developers](https://www.qt.io/developers/)

  * [EN](https://qt.io/support/)
  * [RU](https://qt.io/ru/)
  * [ZH](https://qt.io/zh-hans/)

#

  * [Wiki](https://wiki.qt.io/)
  * [Documentation](https://doc.qt.io/)
  * [Forum](https://forum.qt.io/)
  * [Bug Reports](https://bugreports.qt.io/)
  * [Code Review](https://codereview.qt-project.org/)
  * [Resource Center](https://resources.qt.io/)
  * [Qt Extensions](https://marketplace.qt.io/)

# Qt Documentation

  * [Qt 5.12](index.html)
  * [Qt WebEngine](qtwebengine-index.html)
  * [Qt WebEngine Licensing](qtwebengine-licensing.html)
  * David M. Gay's floating point routines

# David M. Gay's floating point routines

[Project Homepage](http://www.netlib.org/fp/)

    
    
    /****************************************************************
     *
     * The author of this software is David M. Gay.
     *
     * Copyright (c) 1991, 2000, 2001 by Lucent Technologies.
     *
     * Permission to use, copy, modify, and distribute this software for any
     * purpose without fee is hereby granted, provided that this entire notice
     * is included in all copies of any software which is or includes a copy
     * or modification of this software and in all copies of the supporting
     * documentation for such software.
     *
     * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
     * WARRANTY.  IN PARTICULAR, NEITHER THE AUTHOR NOR LUCENT MAKES ANY
     * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
     * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
     *
     *************************************************************** /

© 2020 The Qt Company Ltd. Documentation contributions included herein are the
copyrights of their respective owners. The documentation provided herein is
licensed under the terms of the [GNU Free Documentation License version
1.3](https://www.gnu.org/licenses/fdl.html) as published by the Free Software
Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in
Finland and/or other countries worldwide. All other trademarks are property of
their respective owners.

  * [Download](https://qt.io/download/)
    * [Start for Free](https://qt.io/download/)
    * [Qt for Application Development](https://qt.io/download-eval-for-applications-step-2/)
    * [Qt for Device Creation](https://qt.io/request-eval-for-devices-step-2/)
    * [Qt Open Source](https://qt.io/download-open-source/)
    * [Terms & Conditions](https://qt.io/terms-conditions/)
    * [Licensing FAQ](https://qt.io/FAQ/)
  * [Product](https://qt.io/product/)
    * [Qt in Use](https://qt.io/product/)
    * [Qt for Application Development](https://qt.io/application-development/)
    * [Qt for Device Creation](https://qt.io/qt-for-device-creation/)
    * [Commercial Features](https://qt.io/qt-features/)
    * [Qt Creator IDE](https://qt.io/ide/)
    * [Qt Quick](https://qt.io/qt-quick/)
  * [Services](https://qt.io/services/)
    * [Technology Evaluation](https://qt.io/services-technology-evaluation/)
    * [Proof of Concept](https://qt.io/services-proof-of-concept/)
    * [Design & Implementation](https://qt.io/services-design-implementation/)
    * [Productization](https://qt.io/services-productization/)
    * [Qt Training](https://qt.io/qt-training/)
    * [Partner Network](https://qt.io/partners/)
  * [Developers](https://qt.io/developers/)
    * [Qt Extensions](https://marketplace.qt.io/)
    * [Examples & Tutorials](https://doc.qt.io/qt-5/qtexamplesandtutorials.html)
    * [Development Tools](https://doc.qt.io/qt-5/topics-app-development.html)
    * [Wiki](https://wiki.qt.io/)
    * [Forums](https://forum.qt.io/)
    * [Contribute to Qt](https://wiki.qt.io/contribute)
  * [About us](https://qt.io/about-us/)
    * [Training & Events](https://qt.io/events/)
    * [Resource Center](https://qt.io/resource-center/)
    * [News](https://qt.io/news/)
    * [Careers](https://qt.io/careers/)
    * [Locations](https://qt.io/locations/)
    * [Contact Us](https://qt.io/contact-us)

[](https://qt.io/about-us/)

  * [Sign In](https://account.qt.io/login "Sign into your account.")
  * [Feedback](mailto:feedback@theqtcompany.com?Subject=Feedback%20about%20doc.qt.io%20site)
  * [Contact us](https://qt.io/contact-us/)
  * [© 2020 The Qt Company](https://qt.io/about-us/)

