123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880 |
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <!-- This file is generated by Nim. -->
- <html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" data-theme="auto">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>std/private/dragonbox</title>
- <!-- Google fonts -->
- <link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
- <link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
- <!-- Favicon -->
- <link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
- <link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
- <!-- CSS -->
- <link rel="stylesheet" type="text/css" href="nimdoc.out.css?v=2.3.1">
- <!-- JS -->
- <script type="text/javascript" src="dochack.js?v=2.3.1"></script>
- </head>
- <body>
- <div class="document" id="documentId">
- <div class="container">
- <h1 class="title">std/private/dragonbox</h1>
- <div class="row">
- <div class="three columns">
- <div class="theme-select-wrapper">
- <label for="theme-select">Theme: </label>
- <select id="theme-select" onchange="setTheme(this.value)">
- <option value="auto">🌗 Match OS</option>
- <option value="dark">🌑 Dark</option>
- <option value="light">🌕 Light</option>
- </select>
- </div>
- <div id="global-links">
- <ul class="simple-boot">
- <li><a href="manual.html">Manual</a></li>
- <li><a href="lib.html">Standard library</a></li>
- <li> <a id="indexLink" href="theindex.html">Index</a></li>
- <li><a href="compiler/theindex.html">Compiler docs</a></li>
- <li><a href="https://nim-lang.github.io/fusion/theindex.html">Fusion docs</a></li>
- <li><a href="https://nim-lang.github.io/Nim/">devel</a>, <a href="https://nim-lang.org/documentation.html">stable</a></li>
- </ul>
- </div>
- <div id="searchInputDiv">
- Search: <input type="search" id="searchInput"
- oninput="search()" />
- </div>
-
- <ul class="simple simple-toc" id="toc-list">
- <li>
- <a class="reference reference-toplevel" href="#6" id="56">Imports</a>
- </li>
- <li>
- <details open>
- <summary><a class="reference reference-toplevel" href="#7" id="57">Types</a></summary>
- <ul class="simple simple-toc-section">
- <li><a class="reference" href="#BitsType" title="BitsType = uint64">BitsType</a></li>
- <li><a class="reference" href="#Double" title="Double = object
- bits*: BitsType">Double</a></li>
- <li><a class="reference" href="#FloatingDecimal64" title="FloatingDecimal64 {.bycopy.} = object
- significand*: uint64
- exponent*: int32">FloatingDecimal64</a></li>
- <li><a class="reference" href="#uint64x2" title="uint64x2 {.bycopy.} = object
- hi*: uint64
- lo*: uint64">uint64x2</a></li>
- <li><a class="reference" href="#ValueType" title="ValueType = float">ValueType</a></li>
- </ul>
- </details>
- </li>
- <li>
- <details open>
- <summary><a class="reference reference-toplevel" href="#10" id="60">Consts</a></summary>
- <ul class="simple simple-toc-section">
- <li><a class="reference" href="#dtoaMinBufferLength" title="dtoaMinBufferLength: cint = 64">dtoaMinBufferLength</a></li>
- <li><a class="reference" href="#exponentBias" title="exponentBias: int32 = 1075'i32">exponentBias</a></li>
- <li><a class="reference" href="#exponentMask" title="exponentMask: BitsType = 9218868437227405312'u64">exponentMask</a></li>
- <li><a class="reference" href="#hiddenBit" title="hiddenBit: BitsType = 4503599627370496'u64">hiddenBit</a></li>
- <li><a class="reference" href="#maxIeeeExponent" title="maxIeeeExponent: BitsType = 2047'u">maxIeeeExponent</a></li>
- <li><a class="reference" href="#significandMask" title="significandMask: BitsType = 4503599627370495'u64">significandMask</a></li>
- <li><a class="reference" href="#significandSize" title="significandSize: int32 = 53">significandSize</a></li>
- <li><a class="reference" href="#signMask" title="signMask: BitsType = 9223372036854775808'u64">signMask</a></li>
- </ul>
- </details>
- </li>
- <li>
- <details open>
- <summary><a class="reference reference-toplevel" href="#12" id="62">Procs</a></summary>
- <ul class="simple simple-toc-section">
- <ul class="simple nested-toc-section">computeDelta
- <li><a class="reference" href="#computeDelta%2Cuint64x2%2Cint32" title="computeDelta(pow10: uint64x2; betaMinus1: int32): uint32">computeDelta(pow10: uint64x2; betaMinus1: int32): uint32</a></li>
- </ul>
- <ul class="simple nested-toc-section">computePow10
- <li><a class="reference" href="#computePow10%2Cint32" title="computePow10(k: int32): uint64x2">computePow10(k: int32): uint64x2</a></li>
- </ul>
- <ul class="simple nested-toc-section">constructDouble
- <li><a class="reference" href="#constructDouble%2CBitsType" title="constructDouble(bits: BitsType): Double">constructDouble(bits: BitsType): Double</a></li>
- <li><a class="reference" href="#constructDouble%2CValueType" title="constructDouble(value: ValueType): Double">constructDouble(value: ValueType): Double</a></li>
- </ul>
- <ul class="simple nested-toc-section">decimalLength
- <li><a class="reference" href="#decimalLength%2Cuint64" title="decimalLength(v: uint64): int">decimalLength(v: uint64): int</a></li>
- </ul>
- <ul class="simple nested-toc-section">floorDivPow2
- <li><a class="reference" href="#floorDivPow2%2Cint32%2Cint32" title="floorDivPow2(x: int32; n: int32): int32">floorDivPow2(x: int32; n: int32): int32</a></li>
- </ul>
- <ul class="simple nested-toc-section">floorLog2Pow10
- <li><a class="reference" href="#floorLog2Pow10%2Cint32" title="floorLog2Pow10(e: int32): int32">floorLog2Pow10(e: int32): int32</a></li>
- </ul>
- <ul class="simple nested-toc-section">floorLog10Pow2
- <li><a class="reference" href="#floorLog10Pow2%2Cint32" title="floorLog10Pow2(e: int32): int32">floorLog10Pow2(e: int32): int32</a></li>
- </ul>
- <ul class="simple nested-toc-section">floorLog10ThreeQuartersPow2
- <li><a class="reference" href="#floorLog10ThreeQuartersPow2%2Cint32" title="floorLog10ThreeQuartersPow2(e: int32): int32">floorLog10ThreeQuartersPow2(e: int32): int32</a></li>
- </ul>
- <ul class="simple nested-toc-section">formatDigits
- <li><a class="reference" href="#formatDigits%2CopenArray%5Bchar%5D%2CT%2Cuint64%2Cint" title="formatDigits[T: Ordinal](buffer: var openArray[char]; pos: T; digits: uint64;
- decimalExponent: int; forceTrailingDotZero = false): int">formatDigits[T: Ordinal](buffer: var openArray[char]; pos: T; digits: uint64;
- decimalExponent: int; forceTrailingDotZero = false): int</a></li>
- </ul>
- <ul class="simple nested-toc-section">hi32
- <li><a class="reference" href="#hi32%2Cuint64" title="hi32(x: uint64): uint32">hi32(x: uint64): uint32</a></li>
- </ul>
- <ul class="simple nested-toc-section">isFinite
- <li><a class="reference" href="#isFinite%2CDouble" title="isFinite(this: Double): bool">isFinite(this: Double): bool</a></li>
- </ul>
- <ul class="simple nested-toc-section">isInf
- <li><a class="reference" href="#isInf%2CDouble" title="isInf(this: Double): bool">isInf(this: Double): bool</a></li>
- </ul>
- <ul class="simple nested-toc-section">isIntegralEndpoint
- <li><a class="reference" href="#isIntegralEndpoint%2Cuint64%2Cint32%2Cint32" title="isIntegralEndpoint(twoF: uint64; e2: int32; minusK: int32): bool">isIntegralEndpoint(twoF: uint64; e2: int32; minusK: int32): bool</a></li>
- </ul>
- <ul class="simple nested-toc-section">isIntegralMidpoint
- <li><a class="reference" href="#isIntegralMidpoint%2Cuint64%2Cint32%2Cint32" title="isIntegralMidpoint(twoF: uint64; e2: int32; minusK: int32): bool">isIntegralMidpoint(twoF: uint64; e2: int32; minusK: int32): bool</a></li>
- </ul>
- <ul class="simple nested-toc-section">isNaN
- <li><a class="reference" href="#isNaN%2CDouble" title="isNaN(this: Double): bool">isNaN(this: Double): bool</a></li>
- </ul>
- <ul class="simple nested-toc-section">isZero
- <li><a class="reference" href="#isZero%2CDouble" title="isZero(this: Double): bool">isZero(this: Double): bool</a></li>
- </ul>
- <ul class="simple nested-toc-section">lo32
- <li><a class="reference" href="#lo32%2Cuint64" title="lo32(x: uint64): uint32">lo32(x: uint64): uint32</a></li>
- </ul>
- <ul class="simple nested-toc-section">mul128
- <li><a class="reference" href="#mul128%2Cuint64%2Cuint64" title="mul128(a: uint64; b: uint64): uint64x2">mul128(a: uint64; b: uint64): uint64x2</a></li>
- </ul>
- <ul class="simple nested-toc-section">mulParity
- <li><a class="reference" href="#mulParity%2Cuint64%2Cuint64x2%2Cint32" title="mulParity(twoF: uint64; pow10: uint64x2; betaMinus1: int32): bool">mulParity(twoF: uint64; pow10: uint64x2; betaMinus1: int32): bool</a></li>
- </ul>
- <ul class="simple nested-toc-section">mulShift
- <li><a class="reference" href="#mulShift%2Cuint64%2Cuint64x2" title="mulShift(x: uint64; y: uint64x2): uint64">mulShift(x: uint64; y: uint64x2): uint64</a></li>
- </ul>
- <ul class="simple nested-toc-section">multipleOfPow2
- <li><a class="reference" href="#multipleOfPow2%2Cuint64%2Cint32" title="multipleOfPow2(value: uint64; e2: int32): bool">multipleOfPow2(value: uint64; e2: int32): bool</a></li>
- </ul>
- <ul class="simple nested-toc-section">multipleOfPow5
- <li><a class="reference" href="#multipleOfPow5%2Cuint64%2Cint32" title="multipleOfPow5(value: uint64; e5: int32): bool">multipleOfPow5(value: uint64; e5: int32): bool</a></li>
- </ul>
- <ul class="simple nested-toc-section">physicalExponent
- <li><a class="reference" href="#physicalExponent%2CDouble" title="physicalExponent(this: Double): BitsType">physicalExponent(this: Double): BitsType</a></li>
- </ul>
- <ul class="simple nested-toc-section">physicalSignificand
- <li><a class="reference" href="#physicalSignificand%2CDouble" title="physicalSignificand(this: Double): BitsType">physicalSignificand(this: Double): BitsType</a></li>
- </ul>
- <ul class="simple nested-toc-section">printDecimalDigitsBackwards
- <li><a class="reference" href="#printDecimalDigitsBackwards%2CopenArray%5Bchar%5D%2Cint%2Cuint64" title="printDecimalDigitsBackwards(buf: var openArray[char]; pos: int; output64: uint64): int">printDecimalDigitsBackwards(buf: var openArray[char]; pos: int; output64: uint64): int</a></li>
- </ul>
- <ul class="simple nested-toc-section">signBit
- <li><a class="reference" href="#signBit%2CDouble" title="signBit(this: Double): int">signBit(this: Double): int</a></li>
- </ul>
- <ul class="simple nested-toc-section">toChars
- <li><a class="reference" href="#toChars%2CopenArray%5Bchar%5D%2Cfloat" title="toChars(buffer: var openArray[char]; v: float; forceTrailingDotZero = false): int">toChars(buffer: var openArray[char]; v: float; forceTrailingDotZero = false): int</a></li>
- </ul>
- <ul class="simple nested-toc-section">toDecimal64
- <li><a class="reference" href="#toDecimal64%2Cuint64%2Cuint64" title="toDecimal64(ieeeSignificand: uint64; ieeeExponent: uint64): FloatingDecimal64">toDecimal64(ieeeSignificand: uint64; ieeeExponent: uint64): FloatingDecimal64</a></li>
- </ul>
- <ul class="simple nested-toc-section">toDecimal64AsymmetricInterval
- <li><a class="reference" href="#toDecimal64AsymmetricInterval%2Cint32" title="toDecimal64AsymmetricInterval(e2: int32): FloatingDecimal64">toDecimal64AsymmetricInterval(e2: int32): FloatingDecimal64</a></li>
- </ul>
- <ul class="simple nested-toc-section">utoa8DigitsSkipTrailingZeros
- <li><a class="reference" href="#utoa8DigitsSkipTrailingZeros%2CopenArray%5Bchar%5D%2Cint%2Cuint32" title="utoa8DigitsSkipTrailingZeros(buf: var openArray[char]; pos: int; digits: uint32): int">utoa8DigitsSkipTrailingZeros(buf: var openArray[char]; pos: int; digits: uint32): int</a></li>
- </ul>
- </ul>
- </details>
- </li>
- <li>
- <details open>
- <summary><a class="reference reference-toplevel" href="#18" id="68">Templates</a></summary>
- <ul class="simple simple-toc-section">
- <ul class="simple nested-toc-section">dragonbox_Assert
- <li><a class="reference" href="#dragonbox_Assert.t%2Cuntyped" title="dragonbox_Assert(x: untyped): untyped">dragonbox_Assert(x: untyped): untyped</a></li>
- </ul>
- </ul>
- </details>
- </li>
- </ul>
- </div>
- <div class="nine columns" id="content">
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L1" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L1" class="link-seesrc" target="_blank" >Edit</a>
- <div id="tocRoot"></div>
-
- <p class="module-desc"><p>Copyright 2020 Junekey Jeon Copyright 2020 Alexander Bolz</p>
- <p>Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a class="reference external" href="https://www.boost.org/LICENSE_1_0.txt">https://www.boost.org/LICENSE_1_0.txt</a>)</p>
- <p>char* output_end = Dtoa(buffer, value);</p>
- <p>Converts the given double-precision number into decimal form and stores the result in the given buffer.</p>
- <p>The buffer must be large enough, i.e. >= DtoaMinBufferLength. The output format is similar to printf("%g"). The output is _<a class="reference internal" href="#not">not</a> null-terminted.</p>
- <p>The output is optimal, i.e. the output string</p>
- <ol class="simple"><li>rounds back to the input number when read in (using round-to-nearest-even)</li>
- <li>is as short as possible,</li>
- <li>is as close to the input number as possible.</li>
- </ol>
- <p>Note: This function may temporarily write up to DtoaMinBufferLength characters into the buffer.</p>
- <p>This file contains an implementation of Junekey Jeon's Dragonbox algorithm.</p>
- <p>It is a simplified version of the reference implementation found here: <a class="reference external" href="https://github.com/jk-jeon/dragonbox">https://github.com/jk-jeon/dragonbox</a></p>
- <p>The reference implementation also works with single-precision floating-point numbers and has options to configure the rounding mode.</p>
- <p>namespace Returns floor(x / 2^n).</p>
- <p>Technically, right-shift of negative integers is implementation defined... Should easily be optimized into SAR (or equivalent) instruction.</p>
- Returns whether value is divisible by 2^e2Returns whether value is divisible by 5^e5Returns (x * y) / 2^128</p>
- <div class="section" id="6">
- <h1><a class="toc-backref" href="#6">Imports</a></h1>
- <dl class="item">
- <a class="reference external" href="digitsutils.html">digitsutils</a>, <a class="reference external" href="assertions.html">assertions</a>
- </dl>
- </div>
- <div class="section" id="7">
- <h1><a class="toc-backref" href="#7">Types</a></h1>
- <dl class="item">
- <div id="BitsType">
- <dt><pre><a href="dragonbox.html#BitsType"><span class="Identifier">BitsType</span></a> <span class="Other">=</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a></pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L50" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L50" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="Double">
- <dt><pre><a href="dragonbox.html#Double"><span class="Identifier">Double</span></a> <span class="Other">=</span> <span class="Keyword">object</span>
- <span class="Identifier">bits</span><span class="Operator">*</span><span class="Other">:</span> <a href="dragonbox.html#BitsType"><span class="Identifier">BitsType</span></a></pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L53" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L53" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="FloatingDecimal64">
- <dt><pre><a href="dragonbox.html#FloatingDecimal64"><span class="Identifier">FloatingDecimal64</span></a> {.<span class="Identifier">bycopy</span>.} <span class="Other">=</span> <span class="Keyword">object</span>
- <span class="Identifier">significand</span><span class="Operator">*</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a>
- <span class="Identifier">exponent</span><span class="Operator">*</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a></pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L821" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L821" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="uint64x2">
- <dt><pre><a href="dragonbox.html#uint64x2"><span class="Identifier">uint64x2</span></a> {.<span class="Identifier">bycopy</span>.} <span class="Other">=</span> <span class="Keyword">object</span>
- <span class="Identifier">hi</span><span class="Operator">*</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a>
- <span class="Identifier">lo</span><span class="Operator">*</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a></pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L140" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L140" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="ValueType">
- <dt><pre><a href="dragonbox.html#ValueType"><span class="Identifier">ValueType</span></a> <span class="Other">=</span> <a href="system.html#float"><span class="Identifier">float</span></a></pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L49" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L49" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </dl>
- </div>
- <div class="section" id="10">
- <h1><a class="toc-backref" href="#10">Consts</a></h1>
- <dl class="item">
- <div id="dtoaMinBufferLength">
- <dt><pre><a href="dragonbox.html#dtoaMinBufferLength"><span class="Identifier">dtoaMinBufferLength</span></a><span class="Other">:</span> <a href="ctypes.html#cint"><span class="Identifier">cint</span></a> <span class="Other">=</span> <span class="DecNumber">64</span></pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L31" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L31" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="exponentBias">
- <dt><pre><a href="dragonbox.html#exponentBias"><span class="Identifier">exponentBias</span></a><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a> <span class="Other">=</span> <span class="DecNumber">1075'i32</span></pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L61" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L61" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="exponentMask">
- <dt><pre><a href="dragonbox.html#exponentMask"><span class="Identifier">exponentMask</span></a><span class="Other">:</span> <a href="dragonbox.html#BitsType"><span class="Identifier">BitsType</span></a> <span class="Other">=</span> <span class="DecNumber">9218868437227405312'u64</span></pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L73" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L73" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="hiddenBit">
- <dt><pre><a href="dragonbox.html#hiddenBit"><span class="Identifier">hiddenBit</span></a><span class="Other">:</span> <a href="dragonbox.html#BitsType"><span class="Identifier">BitsType</span></a> <span class="Other">=</span> <span class="DecNumber">4503599627370496'u64</span></pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L67" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L67" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="maxIeeeExponent">
- <dt><pre><a href="dragonbox.html#maxIeeeExponent"><span class="Identifier">maxIeeeExponent</span></a><span class="Other">:</span> <a href="dragonbox.html#BitsType"><span class="Identifier">BitsType</span></a> <span class="Other">=</span> <span class="DecNumber">2047'u</span></pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L64" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L64" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="significandMask">
- <dt><pre><a href="dragonbox.html#significandMask"><span class="Identifier">significandMask</span></a><span class="Other">:</span> <a href="dragonbox.html#BitsType"><span class="Identifier">BitsType</span></a> <span class="Other">=</span> <span class="DecNumber">4503599627370495'u64</span></pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L70" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L70" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="significandSize">
- <dt><pre><a href="dragonbox.html#significandSize"><span class="Identifier">significandSize</span></a><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a> <span class="Other">=</span> <span class="DecNumber">53</span></pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L57" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L57" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="signMask">
- <dt><pre><a href="dragonbox.html#signMask"><span class="Identifier">signMask</span></a><span class="Other">:</span> <a href="dragonbox.html#BitsType"><span class="Identifier">BitsType</span></a> <span class="Other">=</span> <span class="DecNumber">9223372036854775808'u64</span></pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L76" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L76" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </dl>
- </div>
- <div class="section" id="12">
- <h1><a class="toc-backref" href="#12">Procs</a></h1>
- <dl class="item">
- <div id="computeDelta-procs-all">
- <div id="computeDelta,uint64x2,int32">
- <dt><pre><span class="Keyword">proc</span> <a href="#computeDelta%2Cuint64x2%2Cint32"><span class="Identifier">computeDelta</span></a><span class="Other">(</span><span class="Identifier">pow10</span><span class="Other">:</span> <a href="dragonbox.html#uint64x2"><span class="Identifier">uint64x2</span></a><span class="Other">;</span> <span class="Identifier">betaMinus1</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#uint32"><span class="Identifier">uint32</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span>
- <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L859" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L859" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="computePow10-procs-all">
- <div id="computePow10,int32">
- <dt><pre><span class="Keyword">proc</span> <a href="#computePow10%2Cint32"><span class="Identifier">computePow10</span></a><span class="Other">(</span><span class="Identifier">k</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a><span class="Other">)</span><span class="Other">:</span> <a href="dragonbox.html#uint64x2"><span class="Identifier">uint64x2</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
- <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L145" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L145" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="constructDouble-procs-all">
- <div id="constructDouble,BitsType">
- <dt><pre><span class="Keyword">proc</span> <a href="#constructDouble%2CBitsType"><span class="Identifier">constructDouble</span></a><span class="Other">(</span><span class="Identifier">bits</span><span class="Other">:</span> <a href="dragonbox.html#BitsType"><span class="Identifier">BitsType</span></a><span class="Other">)</span><span class="Other">:</span> <a href="dragonbox.html#Double"><span class="Identifier">Double</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L78" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L78" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- <div id="constructDouble,ValueType">
- <dt><pre><span class="Keyword">proc</span> <a href="#constructDouble%2CValueType"><span class="Identifier">constructDouble</span></a><span class="Other">(</span><span class="Identifier">value</span><span class="Other">:</span> <a href="dragonbox.html#ValueType"><span class="Identifier">ValueType</span></a><span class="Other">)</span><span class="Other">:</span> <a href="dragonbox.html#Double"><span class="Identifier">Double</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
- <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L81" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L81" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="decimalLength-procs-all">
- <div id="decimalLength,uint64">
- <dt><pre><span class="Keyword">proc</span> <a href="#decimalLength%2Cuint64"><span class="Identifier">decimalLength</span></a><span class="Other">(</span><span class="Identifier">v</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#int"><span class="Identifier">int</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L1149" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L1149" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="floorDivPow2-procs-all">
- <div id="floorDivPow2,int32,int32">
- <dt><pre><span class="Keyword">proc</span> <a href="#floorDivPow2%2Cint32%2Cint32"><span class="Identifier">floorDivPow2</span></a><span class="Other">(</span><span class="Identifier">x</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a><span class="Other">;</span> <span class="Identifier">n</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
- <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L117" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L117" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="floorLog2Pow10-procs-all">
- <div id="floorLog2Pow10,int32">
- <dt><pre><span class="Keyword">proc</span> <a href="#floorLog2Pow10%2Cint32"><span class="Identifier">floorLog2Pow10</span></a><span class="Other">(</span><span class="Identifier">e</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L120" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L120" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="floorLog10Pow2-procs-all">
- <div id="floorLog10Pow2,int32">
- <dt><pre><span class="Keyword">proc</span> <a href="#floorLog10Pow2%2Cint32"><span class="Identifier">floorLog10Pow2</span></a><span class="Other">(</span><span class="Identifier">e</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L125" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L125" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="floorLog10ThreeQuartersPow2-procs-all">
- <div id="floorLog10ThreeQuartersPow2,int32">
- <dt><pre><span class="Keyword">proc</span> <a href="#floorLog10ThreeQuartersPow2%2Cint32"><span class="Identifier">floorLog10ThreeQuartersPow2</span></a><span class="Other">(</span><span class="Identifier">e</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
- <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L130" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L130" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="formatDigits-procs-all">
- <div id="formatDigits,openArray[char],T,uint64,int">
- <dt><pre><span class="Keyword">proc</span> <a href="#formatDigits%2CopenArray%5Bchar%5D%2CT%2Cuint64%2Cint"><span class="Identifier">formatDigits</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">:</span> <a href="system.html#Ordinal"><span class="Identifier">Ordinal</span></a><span class="Other">]</span><span class="Other">(</span><span class="Identifier">buffer</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="system.html#openArray"><span class="Identifier">openArray</span></a><span class="Other">[</span><a href="system.html#char"><span class="Identifier">char</span></a><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">pos</span><span class="Other">:</span> <span class="Identifier">T</span><span class="Other">;</span>
- <span class="Identifier">digits</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a><span class="Other">;</span> <span class="Identifier">decimalExponent</span><span class="Other">:</span> <a href="system.html#int"><span class="Identifier">int</span></a><span class="Other">;</span>
- <span class="Identifier">forceTrailingDotZero</span> <span class="Other">=</span> <span class="Identifier">false</span><span class="Other">)</span><span class="Other">:</span> <a href="system.html#int"><span class="Identifier">int</span></a> {.<span class="Identifier">inline</span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L1189" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L1189" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="hi32-procs-all">
- <div id="hi32,uint64">
- <dt><pre><span class="Keyword">proc</span> <a href="#hi32%2Cuint64"><span class="Identifier">hi32</span></a><span class="Other">(</span><span class="Identifier">x</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#uint32"><span class="Identifier">uint32</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L885" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L885" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="isFinite-procs-all">
- <div id="isFinite,Double">
- <dt><pre><span class="Keyword">proc</span> <a href="#isFinite%2CDouble"><span class="Identifier">isFinite</span></a><span class="Other">(</span><span class="Identifier">this</span><span class="Other">:</span> <a href="dragonbox.html#Double"><span class="Identifier">Double</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.<span class="Identifier">noSideEffect</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
- <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L90" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L90" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="isInf-procs-all">
- <div id="isInf,Double">
- <dt><pre><span class="Keyword">proc</span> <a href="#isInf%2CDouble"><span class="Identifier">isInf</span></a><span class="Other">(</span><span class="Identifier">this</span><span class="Other">:</span> <a href="dragonbox.html#Double"><span class="Identifier">Double</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.<span class="Identifier">noSideEffect</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L93" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L93" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="isIntegralEndpoint-procs-all">
- <div id="isIntegralEndpoint,uint64,int32,int32">
- <dt><pre><span class="Keyword">proc</span> <a href="#isIntegralEndpoint%2Cuint64%2Cint32%2Cint32"><span class="Identifier">isIntegralEndpoint</span></a><span class="Other">(</span><span class="Identifier">twoF</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a><span class="Other">;</span> <span class="Identifier">e2</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a><span class="Other">;</span> <span class="Identifier">minusK</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span>
- <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L918" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L918" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="isIntegralMidpoint-procs-all">
- <div id="isIntegralMidpoint,uint64,int32,int32">
- <dt><pre><span class="Keyword">proc</span> <a href="#isIntegralMidpoint%2Cuint64%2Cint32%2Cint32"><span class="Identifier">isIntegralMidpoint</span></a><span class="Other">(</span><span class="Identifier">twoF</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a><span class="Other">;</span> <span class="Identifier">e2</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a><span class="Other">;</span> <span class="Identifier">minusK</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span>
- <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L927" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L927" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="isNaN-procs-all">
- <div id="isNaN,Double">
- <dt><pre><span class="Keyword">proc</span> <a href="#isNaN%2CDouble"><span class="Identifier">isNaN</span></a><span class="Other">(</span><span class="Identifier">this</span><span class="Other">:</span> <a href="dragonbox.html#Double"><span class="Identifier">Double</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.<span class="Identifier">noSideEffect</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L97" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L97" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="isZero-procs-all">
- <div id="isZero,Double">
- <dt><pre><span class="Keyword">proc</span> <a href="#isZero%2CDouble"><span class="Identifier">isZero</span></a><span class="Other">(</span><span class="Identifier">this</span><span class="Other">:</span> <a href="dragonbox.html#Double"><span class="Identifier">Double</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.<span class="Identifier">noSideEffect</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
- <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L101" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L101" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="lo32-procs-all">
- <div id="lo32,uint64">
- <dt><pre><span class="Keyword">proc</span> <a href="#lo32%2Cuint64"><span class="Identifier">lo32</span></a><span class="Other">(</span><span class="Identifier">x</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#uint32"><span class="Identifier">uint32</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L882" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L882" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="mul128-procs-all">
- <div id="mul128,uint64,uint64">
- <dt><pre><span class="Keyword">proc</span> <a href="#mul128%2Cuint64%2Cuint64"><span class="Identifier">mul128</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a><span class="Other">;</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a><span class="Other">)</span><span class="Other">:</span> <a href="dragonbox.html#uint64x2"><span class="Identifier">uint64x2</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
- <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L888" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L888" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="mulParity-procs-all">
- <div id="mulParity,uint64,uint64x2,int32">
- <dt><pre><span class="Keyword">proc</span> <a href="#mulParity%2Cuint64%2Cuint64x2%2Cint32"><span class="Identifier">mulParity</span></a><span class="Other">(</span><span class="Identifier">twoF</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a><span class="Other">;</span> <span class="Identifier">pow10</span><span class="Other">:</span> <a href="dragonbox.html#uint64x2"><span class="Identifier">uint64x2</span></a><span class="Other">;</span> <span class="Identifier">betaMinus1</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span>
- <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
- 1 mulx, 1 mul
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L909" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L909" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="mulShift-procs-all">
- <div id="mulShift,uint64,uint64x2">
- <dt><pre><span class="Keyword">proc</span> <a href="#mulShift%2Cuint64%2Cuint64x2"><span class="Identifier">mulShift</span></a><span class="Other">(</span><span class="Identifier">x</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a><span class="Other">;</span> <span class="Identifier">y</span><span class="Other">:</span> <a href="dragonbox.html#uint64x2"><span class="Identifier">uint64x2</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
- <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
- 2 mulx
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L901" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L901" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="multipleOfPow2-procs-all">
- <div id="multipleOfPow2,uint64,int32">
- <dt><pre><span class="Keyword">proc</span> <a href="#multipleOfPow2%2Cuint64%2Cint32"><span class="Identifier">multipleOfPow2</span></a><span class="Other">(</span><span class="Identifier">value</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a><span class="Other">;</span> <span class="Identifier">e2</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
- <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L777" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L777" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="multipleOfPow5-procs-all">
- <div id="multipleOfPow5,uint64,int32">
- <dt><pre><span class="Keyword">proc</span> <a href="#multipleOfPow5%2Cuint64%2Cint32"><span class="Identifier">multipleOfPow5</span></a><span class="Other">(</span><span class="Identifier">value</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a><span class="Other">;</span> <span class="Identifier">e5</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
- <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L783" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L783" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="physicalExponent-procs-all">
- <div id="physicalExponent,Double">
- <dt><pre><span class="Keyword">proc</span> <a href="#physicalExponent%2CDouble"><span class="Identifier">physicalExponent</span></a><span class="Other">(</span><span class="Identifier">this</span><span class="Other">:</span> <a href="dragonbox.html#Double"><span class="Identifier">Double</span></a><span class="Other">)</span><span class="Other">:</span> <a href="dragonbox.html#BitsType"><span class="Identifier">BitsType</span></a> {.<span class="Identifier">noSideEffect</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
- <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L87" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L87" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="physicalSignificand-procs-all">
- <div id="physicalSignificand,Double">
- <dt><pre><span class="Keyword">proc</span> <a href="#physicalSignificand%2CDouble"><span class="Identifier">physicalSignificand</span></a><span class="Other">(</span><span class="Identifier">this</span><span class="Other">:</span> <a href="dragonbox.html#Double"><span class="Identifier">Double</span></a><span class="Other">)</span><span class="Other">:</span> <a href="dragonbox.html#BitsType"><span class="Identifier">BitsType</span></a> {.<span class="Identifier">noSideEffect</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
- <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L84" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L84" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="printDecimalDigitsBackwards-procs-all">
- <div id="printDecimalDigitsBackwards,openArray[char],int,uint64">
- <dt><pre><span class="Keyword">proc</span> <a href="#printDecimalDigitsBackwards%2CopenArray%5Bchar%5D%2Cint%2Cuint64"><span class="Identifier">printDecimalDigitsBackwards</span></a><span class="Other">(</span><span class="Identifier">buf</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="system.html#openArray"><span class="Identifier">openArray</span></a><span class="Other">[</span><a href="system.html#char"><span class="Identifier">char</span></a><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">pos</span><span class="Other">:</span> <a href="system.html#int"><span class="Identifier">int</span></a><span class="Other">;</span>
- <span class="Identifier">output64</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#int"><span class="Identifier">int</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
- <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L1073" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L1073" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="signBit-procs-all">
- <div id="signBit,Double">
- <dt><pre><span class="Keyword">proc</span> <a href="#signBit%2CDouble"><span class="Identifier">signBit</span></a><span class="Other">(</span><span class="Identifier">this</span><span class="Other">:</span> <a href="dragonbox.html#Double"><span class="Identifier">Double</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#int"><span class="Identifier">int</span></a> {.<span class="Identifier">noSideEffect</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
- <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L104" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L104" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="toChars-procs-all">
- <div id="toChars,openArray[char],float">
- <dt><pre><span class="Keyword">proc</span> <a href="#toChars%2CopenArray%5Bchar%5D%2Cfloat"><span class="Identifier">toChars</span></a><span class="Other">(</span><span class="Identifier">buffer</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="system.html#openArray"><span class="Identifier">openArray</span></a><span class="Other">[</span><a href="system.html#char"><span class="Identifier">char</span></a><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">v</span><span class="Other">:</span> <a href="system.html#float"><span class="Identifier">float</span></a><span class="Other">;</span> <span class="Identifier">forceTrailingDotZero</span> <span class="Other">=</span> <span class="Identifier">false</span><span class="Other">)</span><span class="Other">:</span> <a href="system.html#int"><span class="Identifier">int</span></a> {.
- <span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L1282" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L1282" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="toDecimal64-procs-all">
- <div id="toDecimal64,uint64,uint64">
- <dt><pre><span class="Keyword">proc</span> <a href="#toDecimal64%2Cuint64%2Cuint64"><span class="Identifier">toDecimal64</span></a><span class="Other">(</span><span class="Identifier">ieeeSignificand</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a><span class="Other">;</span> <span class="Identifier">ieeeExponent</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a><span class="Other">)</span><span class="Other">:</span> <a href="dragonbox.html#FloatingDecimal64"><span class="Identifier">FloatingDecimal64</span></a> {.
- <span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L936" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L936" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="toDecimal64AsymmetricInterval-procs-all">
- <div id="toDecimal64AsymmetricInterval,int32">
- <dt><pre><span class="Keyword">proc</span> <a href="#toDecimal64AsymmetricInterval%2Cint32"><span class="Identifier">toDecimal64AsymmetricInterval</span></a><span class="Other">(</span><span class="Identifier">e2</span><span class="Other">:</span> <a href="system.html#int32"><span class="Identifier">int32</span></a><span class="Other">)</span><span class="Other">:</span> <a href="dragonbox.html#FloatingDecimal64"><span class="Identifier">FloatingDecimal64</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span>
- <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
- NB: accept_lower_endpoint = true accept_upper_endpoint = true
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L826" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L826" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- <div id="utoa8DigitsSkipTrailingZeros-procs-all">
- <div id="utoa8DigitsSkipTrailingZeros,openArray[char],int,uint32">
- <dt><pre><span class="Keyword">proc</span> <a href="#utoa8DigitsSkipTrailingZeros%2CopenArray%5Bchar%5D%2Cint%2Cuint32"><span class="Identifier">utoa8DigitsSkipTrailingZeros</span></a><span class="Other">(</span><span class="Identifier">buf</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="system.html#openArray"><span class="Identifier">openArray</span></a><span class="Other">[</span><a href="system.html#char"><span class="Identifier">char</span></a><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">pos</span><span class="Other">:</span> <a href="system.html#int"><span class="Identifier">int</span></a><span class="Other">;</span>
- <span class="Identifier">digits</span><span class="Other">:</span> <a href="system.html#uint32"><span class="Identifier">uint32</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#int"><span class="Identifier">int</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
- <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L1055" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L1055" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- </dl>
- </div>
- <div class="section" id="18">
- <h1><a class="toc-backref" href="#18">Templates</a></h1>
- <dl class="item">
- <div id="dragonbox_Assert-templates-all">
- <div id="dragonbox_Assert.t,untyped">
- <dt><pre><span class="Keyword">template</span> <a href="#dragonbox_Assert.t%2Cuntyped"><span class="Identifier">dragonbox_Assert</span></a><span class="Other">(</span><span class="Identifier">x</span><span class="Other">:</span> <a href="system.html#untyped"><span class="Identifier">untyped</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#untyped"><span class="Identifier">untyped</span></a></pre></dt>
- <dd>
-
-
- <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L41" class="link-seesrc" target="_blank">Source</a>
- <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L41" class="link-seesrc" target="_blank" >Edit</a>
- </dd>
- </div>
- </div>
- </dl>
- </div>
- </div>
- </div>
- <div class="twelve-columns footer">
- <span class="nim-sprite"></span>
- <br>
- <small style="color: var(--hint);">Made with Nim. Generated: 2025-01-09 12:00:37 UTC</small>
- </div>
- </div>
- </div>
- <script defer data-domain="nim-lang.org" src="https://plausible.io/js/plausible.js"></script>
-
- </body>
- </html>
|