Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 390

qtbase5-doc-5.9.4-1.1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qfloat16.cpp -->
  <title>&lt;QFloat16&gt; | Qt Core 5.9</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.9</td><td ><a href="qtcore-index.html">Qt Core</a></td><td >&lt;QFloat16&gt;</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">&lt;QFloat16&gt;</h1>
<span class="subtitle"></span>
<p>This documentation was introduced in  Qt 5.9.</p>
<ul>
</ul>
<a name="Functions"></a>
<h2 id="Functions">Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qfloat16.html#qFuzzyCompare">qFuzzyCompare</a></b>(qfloat16 <i>p1</i>, qfloat16 <i>p2</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qfloat16.html#qIsFinite">qIsFinite</a></b>(qfloat16 <i>f</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qfloat16.html#qIsInf">qIsInf</a></b>(qfloat16 <i>f</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qfloat16.html#qIsNaN">qIsNaN</a></b>(qfloat16 <i>f</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> qint64 </td><td class="memItemRight bottomAlign"><b><a href="qfloat16.html#qRound64">qRound64</a></b>(qfloat16 <i>value</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qfloat16.html#qRound">qRound</a></b>(qfloat16 <i>value</i>)</td></tr>
</table></div>
<!-- $$$<QFloat16>-description -->
<div class="descr"> <a name="details"></a>
<p>This header file provides support for half-precision (16-bit) floating point data with the class <code>qfloat16</code>. It is fully compliant with IEEE 754 as a storage type. This implies that any arithmetic operation on a <code>qfloat16</code> instance results in the value first being converted to a <code>float</code>. This conversion to and from <code>float</code> is performed by hardware when possible, but on processors that do not natively support half-precision, the conversion is performed through a sequence of lookup table operations.</p>
<p><code>qfloat16</code> should be treated as if it were a POD (plain old data) type. Consequently, none of the supported operations need any elaboration beyond stating that it supports all arithmetic operators incident to floating point types.</p>
</div>
<!-- @@@<QFloat16> -->
<h2>Function Documentation</h2>
<!-- $$$qFuzzyCompare[overload1]$$$qFuzzyCompareqfloat16qfloat16 -->
<h3 class="fn" id="qFuzzyCompare"><a name="qFuzzyCompare"></a><span class="type">bool</span> <span class="name">qFuzzyCompare</span>(<span class="type">qfloat16</span> <i>p1</i>, <span class="type">qfloat16</span> <i>p2</i>)</h3>
<p>Compares the floating point value <i>p1</i> and <i>p2</i> and returns <code>true</code> if they are considered equal, otherwise <code>false</code>.</p>
<p>The two numbers are compared in a relative way, where the exactness is stronger the smaller the numbers are.</p>
<!-- @@@qFuzzyCompare -->
<!-- $$$qIsFinite[overload1]$$$qIsFiniteqfloat16 -->
<h3 class="fn" id="qIsFinite"><a name="qIsFinite"></a><span class="type">bool</span> <span class="name">qIsFinite</span>(<span class="type">qfloat16</span> <i>f</i>)</h3>
<p>Returns true if the <code>qfloat16</code> <i>f</i> is a finite number.</p>
<p><b>See also </b>qIsFinite.</p>
<!-- @@@qIsFinite -->
<!-- $$$qIsInf[overload1]$$$qIsInfqfloat16 -->
<h3 class="fn" id="qIsInf"><a name="qIsInf"></a><span class="type">bool</span> <span class="name">qIsInf</span>(<span class="type">qfloat16</span> <i>f</i>)</h3>
<p>Returns true if the <code>qfloat16</code> <i>f</i> is equivalent to infinity.</p>
<p><b>See also </b>qIsInf.</p>
<!-- @@@qIsInf -->
<!-- $$$qIsNaN[overload1]$$$qIsNaNqfloat16 -->
<h3 class="fn" id="qIsNaN"><a name="qIsNaN"></a><span class="type">bool</span> <span class="name">qIsNaN</span>(<span class="type">qfloat16</span> <i>f</i>)</h3>
<p>Returns true if the <code>qfloat16</code> <i>f</i> is not a number (NaN).</p>
<p><b>See also </b>qIsNaN.</p>
<!-- @@@qIsNaN -->
<!-- $$$qRound64[overload1]$$$qRound64qfloat16 -->
<h3 class="fn" id="qRound64"><a name="qRound64"></a><span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> <span class="name">qRound64</span>(<span class="type">qfloat16</span> <i>value</i>)</h3>
<p>Rounds <i>value</i> to the nearest 64-bit integer.</p>
<p><b>See also </b>qRound64.</p>
<!-- @@@qRound64 -->
<!-- $$$qRound[overload1]$$$qRoundqfloat16 -->
<h3 class="fn" id="qRound"><a name="qRound"></a><span class="type">int</span> <span class="name">qRound</span>(<span class="type">qfloat16</span> <i>value</i>)</h3>
<p>Rounds <i>value</i> to the nearest integer.</p>
<p><b>See also </b>qRound.</p>
<!-- @@@qRound -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    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. </p>
</div>
</body>
</html>