You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Trac3r-rust/doc/half/consts/index.html

38 lines
12 KiB

5 years ago
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `consts` mod in crate `half`."><meta name="keywords" content="rust, rustlang, rust-lang, consts"><title>half::consts - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../half/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module consts</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#constants">Constants</a></li></ul></div><p class='location'><a href='../index.html'>half</a></p><script>window.sidebarCurrent = {name: 'consts', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/half/lib.rs.html#50-128' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>half</a>::<wbr><a class="mod" href=''>consts</a></span></h1><div class='docblock'><p>Useful <code>f16</code> constants.</p>
</div><h2 id='constants' class='section-header'><a href="#constants">Constants</a></h2>
<table><tr class='module-item'><td><a class="constant" href="constant.DIGITS.html" title='half::consts::DIGITS constant'>DIGITS</a></td><td class='docblock-short'><p>16-bit equivalent of <code>std::f32::DIGITS</code></p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.E.html" title='half::consts::E constant'>E</a></td><td class='docblock-short'><p>Euler's number.</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.EPSILON.html" title='half::consts::EPSILON constant'>EPSILON</a></td><td class='docblock-short'><p>16-bit floating point epsilon. <code>9.7656e-4</code></p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.FRAC_1_PI.html" title='half::consts::FRAC_1_PI constant'>FRAC_1_PI</a></td><td class='docblock-short'><p>1.0/pi</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.FRAC_2_PI.html" title='half::consts::FRAC_2_PI constant'>FRAC_2_PI</a></td><td class='docblock-short'><p>2.0/pi</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.FRAC_2_SQRT_PI.html" title='half::consts::FRAC_2_SQRT_PI constant'>FRAC_2_SQRT_PI</a></td><td class='docblock-short'><p>2.0/sqrt(pi)</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.FRAC_1_SQRT_2.html" title='half::consts::FRAC_1_SQRT_2 constant'>FRAC_1_SQRT_2</a></td><td class='docblock-short'><p>1.0/sqrt(2.0)</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.FRAC_PI_2.html" title='half::consts::FRAC_PI_2 constant'>FRAC_PI_2</a></td><td class='docblock-short'><p>pi/2.0</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.FRAC_PI_3.html" title='half::consts::FRAC_PI_3 constant'>FRAC_PI_3</a></td><td class='docblock-short'><p>pi/3.0</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.FRAC_PI_4.html" title='half::consts::FRAC_PI_4 constant'>FRAC_PI_4</a></td><td class='docblock-short'><p>pi/4.0</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.FRAC_PI_6.html" title='half::consts::FRAC_PI_6 constant'>FRAC_PI_6</a></td><td class='docblock-short'><p>pi/6.0</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.FRAC_PI_8.html" title='half::consts::FRAC_PI_8 constant'>FRAC_PI_8</a></td><td class='docblock-short'><p>pi/8.0</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.INFINITY.html" title='half::consts::INFINITY constant'>INFINITY</a></td><td class='docblock-short'><p>16-bit positive infinity.</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.LN_2.html" title='half::consts::LN_2 constant'>LN_2</a></td><td class='docblock-short'><p>ln(2.0)</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.LN_10.html" title='half::consts::LN_10 constant'>LN_10</a></td><td class='docblock-short'><p>ln(10.0)</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.LOG2_E.html" title='half::consts::LOG2_E constant'>LOG2_E</a></td><td class='docblock-short'><p>log2(e)</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.LOG10_E.html" title='half::consts::LOG10_E constant'>LOG10_E</a></td><td class='docblock-short'><p>log10(e)</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.MANTISSA_DIGITS.html" title='half::consts::MANTISSA_DIGITS constant'>MANTISSA_DIGITS</a></td><td class='docblock-short'><p>16-bit equivalent of <code>std::f32::MANTISSA_DIGITS</code></p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.MAX.html" title='half::consts::MAX constant'>MAX</a></td><td class='docblock-short'><p>Largest finite <code>f16</code> value. <code>65504</code></p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.MAX_10_EXP.html" title='half::consts::MAX_10_EXP constant'>MAX_10_EXP</a></td><td class='docblock-short'><p>16-bit equivalent of <code>std::f32::MAX_10_EXP</code></p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.MAX_EXP.html" title='half::consts::MAX_EXP constant'>MAX_EXP</a></td><td class='docblock-short'><p>16-bit equivalent of <code>std::f32::MAX_EXP</code></p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.MAX_SUBNORMAL.html" title='half::consts::MAX_SUBNORMAL constant'>MAX_SUBNORMAL</a></td><td class='docblock-short'><p>16-bit maximum subnormal value. Approx. <code>6.09756e5</code></p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.MIN.html" title='half::consts::MIN constant'>MIN</a></td><td class='docblock-short'><p>Smallest finite <code>f16</code> value.</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.MIN_10_EXP.html" title='half::consts::MIN_10_EXP constant'>MIN_10_EXP</a></td><td class='docblock-short'><p>16-bit equivalent of <code>std::f32::MIN_10_EXP</code></p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.MIN_EXP.html" title='half::consts::MIN_EXP constant'>MIN_EXP</a></td><td class='docblock-short'><p>16-bit equivalent of <code>std::f32::MIN_EXP</code></p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.MIN_POSITIVE.html" title='half::consts::MIN_POSITIVE constant'>MIN_POSITIVE</a></td><td class='docblock-short'><p>Smallest positive, normalized <code>f16</code> value. Approx. <code>6.10352e5</code></p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.MIN_POSITIVE_SUBNORMAL.html" title='half::consts::MIN_POSITIVE_SUBNORMAL constant'>MIN_POSITIVE_SUBNORMAL</a></td><td class='docblock-short'><p>16-bit minimum positive subnormal value. Approx. <code>5.96046e8</code></p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.NAN.html" title='half::consts::NAN constant'>NAN</a></td><td class='docblock-short'><p>16-bit NaN.</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.NEG_INFINITY.html" title='half::consts::NEG_INFINITY constant'>NEG_INFINITY</a></td><td class='docblock-short'><p>16-bit negative infinity.</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.NEG_ZERO.html" title='half::consts::NEG_ZERO constant'>NEG_ZERO</a></td><td class='docblock-short'><p>16-bit floating point <code>-0.0</code></p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.ONE.html" title='half::consts::ONE constant'>ONE</a></td><td class='docblock-short'><p>16-bit floating point <code>1.0</code></p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.PI.html" title='half::consts::PI constant'>PI</a></td><td class='docblock-short'><p>Archimedes' constant.</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.RADIX.html" title='half::consts::RADIX constant'>RADIX</a></td><td class='docblock-short'><p>16-bit equivalent of <code>std::f32::RADIX</code></p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.SQRT_2.html" title='half::consts::SQRT_2 constant'>SQRT_2</a></td><td class='docblock-short'><p>sqrt(2)</p>
</td></tr><tr class='module-item'><td><a class="constant" href="constant.ZERO.html" title='half::consts::ZERO constant'>ZERO</a></td><td class='docblock-short'><p>16-bit floating point <code>0.0</code></p>
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd></kbd></dt><dd>Move up in search results</dd><dt><kbd></kbd></dt><dd>Move down in search results</dd><dt><kbd></kbd></dt><dd>Switch tab</dd><dt><kbd>&#9166;</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../";window.currentCrate = "half";</script><script src="../../aliases.js"></script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>