dragonbox.html 75 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <!-- This file is generated by Nim. -->
  4. <html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" data-theme="auto">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <title>std/private/dragonbox</title>
  9. <!-- Google fonts -->
  10. <link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
  11. <link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
  12. <!-- Favicon -->
  13. <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=="/>
  14. <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=">
  15. <!-- CSS -->
  16. <link rel="stylesheet" type="text/css" href="nimdoc.out.css?v=2.3.1">
  17. <!-- JS -->
  18. <script type="text/javascript" src="dochack.js?v=2.3.1"></script>
  19. </head>
  20. <body>
  21. <div class="document" id="documentId">
  22. <div class="container">
  23. <h1 class="title">std/private/dragonbox</h1>
  24. <div class="row">
  25. <div class="three columns">
  26. <div class="theme-select-wrapper">
  27. <label for="theme-select">Theme:&nbsp;</label>
  28. <select id="theme-select" onchange="setTheme(this.value)">
  29. <option value="auto">🌗 Match OS</option>
  30. <option value="dark">🌑 Dark</option>
  31. <option value="light">🌕 Light</option>
  32. </select>
  33. </div>
  34. <div id="global-links">
  35. <ul class="simple-boot">
  36. <li><a href="manual.html">Manual</a></li>
  37. <li><a href="lib.html">Standard library</a></li>
  38. <li> <a id="indexLink" href="theindex.html">Index</a></li>
  39. <li><a href="compiler/theindex.html">Compiler docs</a></li>
  40. <li><a href="https://nim-lang.github.io/fusion/theindex.html">Fusion docs</a></li>
  41. <li><a href="https://nim-lang.github.io/Nim/">devel</a>, <a href="https://nim-lang.org/documentation.html">stable</a></li>
  42. </ul>
  43. </div>
  44. <div id="searchInputDiv">
  45. Search: <input type="search" id="searchInput"
  46. oninput="search()" />
  47. </div>
  48. <ul class="simple simple-toc" id="toc-list">
  49. <li>
  50. <a class="reference reference-toplevel" href="#6" id="56">Imports</a>
  51. </li>
  52. <li>
  53. <details open>
  54. <summary><a class="reference reference-toplevel" href="#7" id="57">Types</a></summary>
  55. <ul class="simple simple-toc-section">
  56. <li><a class="reference" href="#BitsType" title="BitsType = uint64">BitsType</a></li>
  57. <li><a class="reference" href="#Double" title="Double = object
  58. bits*: BitsType">Double</a></li>
  59. <li><a class="reference" href="#FloatingDecimal64" title="FloatingDecimal64 {.bycopy.} = object
  60. significand*: uint64
  61. exponent*: int32">FloatingDecimal64</a></li>
  62. <li><a class="reference" href="#uint64x2" title="uint64x2 {.bycopy.} = object
  63. hi*: uint64
  64. lo*: uint64">uint64x2</a></li>
  65. <li><a class="reference" href="#ValueType" title="ValueType = float">ValueType</a></li>
  66. </ul>
  67. </details>
  68. </li>
  69. <li>
  70. <details open>
  71. <summary><a class="reference reference-toplevel" href="#10" id="60">Consts</a></summary>
  72. <ul class="simple simple-toc-section">
  73. <li><a class="reference" href="#dtoaMinBufferLength" title="dtoaMinBufferLength: cint = 64">dtoaMinBufferLength</a></li>
  74. <li><a class="reference" href="#exponentBias" title="exponentBias: int32 = 1075'i32">exponentBias</a></li>
  75. <li><a class="reference" href="#exponentMask" title="exponentMask: BitsType = 9218868437227405312'u64">exponentMask</a></li>
  76. <li><a class="reference" href="#hiddenBit" title="hiddenBit: BitsType = 4503599627370496'u64">hiddenBit</a></li>
  77. <li><a class="reference" href="#maxIeeeExponent" title="maxIeeeExponent: BitsType = 2047'u">maxIeeeExponent</a></li>
  78. <li><a class="reference" href="#significandMask" title="significandMask: BitsType = 4503599627370495'u64">significandMask</a></li>
  79. <li><a class="reference" href="#significandSize" title="significandSize: int32 = 53">significandSize</a></li>
  80. <li><a class="reference" href="#signMask" title="signMask: BitsType = 9223372036854775808'u64">signMask</a></li>
  81. </ul>
  82. </details>
  83. </li>
  84. <li>
  85. <details open>
  86. <summary><a class="reference reference-toplevel" href="#12" id="62">Procs</a></summary>
  87. <ul class="simple simple-toc-section">
  88. <ul class="simple nested-toc-section">computeDelta
  89. <li><a class="reference" href="#computeDelta%2Cuint64x2%2Cint32" title="computeDelta(pow10: uint64x2; betaMinus1: int32): uint32">computeDelta(pow10: uint64x2; betaMinus1: int32): uint32</a></li>
  90. </ul>
  91. <ul class="simple nested-toc-section">computePow10
  92. <li><a class="reference" href="#computePow10%2Cint32" title="computePow10(k: int32): uint64x2">computePow10(k: int32): uint64x2</a></li>
  93. </ul>
  94. <ul class="simple nested-toc-section">constructDouble
  95. <li><a class="reference" href="#constructDouble%2CBitsType" title="constructDouble(bits: BitsType): Double">constructDouble(bits: BitsType): Double</a></li>
  96. <li><a class="reference" href="#constructDouble%2CValueType" title="constructDouble(value: ValueType): Double">constructDouble(value: ValueType): Double</a></li>
  97. </ul>
  98. <ul class="simple nested-toc-section">decimalLength
  99. <li><a class="reference" href="#decimalLength%2Cuint64" title="decimalLength(v: uint64): int">decimalLength(v: uint64): int</a></li>
  100. </ul>
  101. <ul class="simple nested-toc-section">floorDivPow2
  102. <li><a class="reference" href="#floorDivPow2%2Cint32%2Cint32" title="floorDivPow2(x: int32; n: int32): int32">floorDivPow2(x: int32; n: int32): int32</a></li>
  103. </ul>
  104. <ul class="simple nested-toc-section">floorLog2Pow10
  105. <li><a class="reference" href="#floorLog2Pow10%2Cint32" title="floorLog2Pow10(e: int32): int32">floorLog2Pow10(e: int32): int32</a></li>
  106. </ul>
  107. <ul class="simple nested-toc-section">floorLog10Pow2
  108. <li><a class="reference" href="#floorLog10Pow2%2Cint32" title="floorLog10Pow2(e: int32): int32">floorLog10Pow2(e: int32): int32</a></li>
  109. </ul>
  110. <ul class="simple nested-toc-section">floorLog10ThreeQuartersPow2
  111. <li><a class="reference" href="#floorLog10ThreeQuartersPow2%2Cint32" title="floorLog10ThreeQuartersPow2(e: int32): int32">floorLog10ThreeQuartersPow2(e: int32): int32</a></li>
  112. </ul>
  113. <ul class="simple nested-toc-section">formatDigits
  114. <li><a class="reference" href="#formatDigits%2CopenArray%5Bchar%5D%2CT%2Cuint64%2Cint" title="formatDigits[T: Ordinal](buffer: var openArray[char]; pos: T; digits: uint64;
  115. decimalExponent: int; forceTrailingDotZero = false): int">formatDigits[T: Ordinal](buffer: var openArray[char]; pos: T; digits: uint64;
  116. decimalExponent: int; forceTrailingDotZero = false): int</a></li>
  117. </ul>
  118. <ul class="simple nested-toc-section">hi32
  119. <li><a class="reference" href="#hi32%2Cuint64" title="hi32(x: uint64): uint32">hi32(x: uint64): uint32</a></li>
  120. </ul>
  121. <ul class="simple nested-toc-section">isFinite
  122. <li><a class="reference" href="#isFinite%2CDouble" title="isFinite(this: Double): bool">isFinite(this: Double): bool</a></li>
  123. </ul>
  124. <ul class="simple nested-toc-section">isInf
  125. <li><a class="reference" href="#isInf%2CDouble" title="isInf(this: Double): bool">isInf(this: Double): bool</a></li>
  126. </ul>
  127. <ul class="simple nested-toc-section">isIntegralEndpoint
  128. <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>
  129. </ul>
  130. <ul class="simple nested-toc-section">isIntegralMidpoint
  131. <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>
  132. </ul>
  133. <ul class="simple nested-toc-section">isNaN
  134. <li><a class="reference" href="#isNaN%2CDouble" title="isNaN(this: Double): bool">isNaN(this: Double): bool</a></li>
  135. </ul>
  136. <ul class="simple nested-toc-section">isZero
  137. <li><a class="reference" href="#isZero%2CDouble" title="isZero(this: Double): bool">isZero(this: Double): bool</a></li>
  138. </ul>
  139. <ul class="simple nested-toc-section">lo32
  140. <li><a class="reference" href="#lo32%2Cuint64" title="lo32(x: uint64): uint32">lo32(x: uint64): uint32</a></li>
  141. </ul>
  142. <ul class="simple nested-toc-section">mul128
  143. <li><a class="reference" href="#mul128%2Cuint64%2Cuint64" title="mul128(a: uint64; b: uint64): uint64x2">mul128(a: uint64; b: uint64): uint64x2</a></li>
  144. </ul>
  145. <ul class="simple nested-toc-section">mulParity
  146. <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>
  147. </ul>
  148. <ul class="simple nested-toc-section">mulShift
  149. <li><a class="reference" href="#mulShift%2Cuint64%2Cuint64x2" title="mulShift(x: uint64; y: uint64x2): uint64">mulShift(x: uint64; y: uint64x2): uint64</a></li>
  150. </ul>
  151. <ul class="simple nested-toc-section">multipleOfPow2
  152. <li><a class="reference" href="#multipleOfPow2%2Cuint64%2Cint32" title="multipleOfPow2(value: uint64; e2: int32): bool">multipleOfPow2(value: uint64; e2: int32): bool</a></li>
  153. </ul>
  154. <ul class="simple nested-toc-section">multipleOfPow5
  155. <li><a class="reference" href="#multipleOfPow5%2Cuint64%2Cint32" title="multipleOfPow5(value: uint64; e5: int32): bool">multipleOfPow5(value: uint64; e5: int32): bool</a></li>
  156. </ul>
  157. <ul class="simple nested-toc-section">physicalExponent
  158. <li><a class="reference" href="#physicalExponent%2CDouble" title="physicalExponent(this: Double): BitsType">physicalExponent(this: Double): BitsType</a></li>
  159. </ul>
  160. <ul class="simple nested-toc-section">physicalSignificand
  161. <li><a class="reference" href="#physicalSignificand%2CDouble" title="physicalSignificand(this: Double): BitsType">physicalSignificand(this: Double): BitsType</a></li>
  162. </ul>
  163. <ul class="simple nested-toc-section">printDecimalDigitsBackwards
  164. <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>
  165. </ul>
  166. <ul class="simple nested-toc-section">signBit
  167. <li><a class="reference" href="#signBit%2CDouble" title="signBit(this: Double): int">signBit(this: Double): int</a></li>
  168. </ul>
  169. <ul class="simple nested-toc-section">toChars
  170. <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>
  171. </ul>
  172. <ul class="simple nested-toc-section">toDecimal64
  173. <li><a class="reference" href="#toDecimal64%2Cuint64%2Cuint64" title="toDecimal64(ieeeSignificand: uint64; ieeeExponent: uint64): FloatingDecimal64">toDecimal64(ieeeSignificand: uint64; ieeeExponent: uint64): FloatingDecimal64</a></li>
  174. </ul>
  175. <ul class="simple nested-toc-section">toDecimal64AsymmetricInterval
  176. <li><a class="reference" href="#toDecimal64AsymmetricInterval%2Cint32" title="toDecimal64AsymmetricInterval(e2: int32): FloatingDecimal64">toDecimal64AsymmetricInterval(e2: int32): FloatingDecimal64</a></li>
  177. </ul>
  178. <ul class="simple nested-toc-section">utoa8DigitsSkipTrailingZeros
  179. <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>
  180. </ul>
  181. </ul>
  182. </details>
  183. </li>
  184. <li>
  185. <details open>
  186. <summary><a class="reference reference-toplevel" href="#18" id="68">Templates</a></summary>
  187. <ul class="simple simple-toc-section">
  188. <ul class="simple nested-toc-section">dragonbox_Assert
  189. <li><a class="reference" href="#dragonbox_Assert.t%2Cuntyped" title="dragonbox_Assert(x: untyped): untyped">dragonbox_Assert(x: untyped): untyped</a></li>
  190. </ul>
  191. </ul>
  192. </details>
  193. </li>
  194. </ul>
  195. </div>
  196. <div class="nine columns" id="content">
  197. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L1" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  198. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L1" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  199. <div id="tocRoot"></div>
  200. <p class="module-desc"><p>Copyright 2020 Junekey Jeon Copyright 2020 Alexander Bolz</p>
  201. <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>
  202. <p>char* output_end = Dtoa(buffer, value);</p>
  203. <p>Converts the given double-precision number into decimal form and stores the result in the given buffer.</p>
  204. <p>The buffer must be large enough, i.e. &gt;= DtoaMinBufferLength. The output format is similar to printf(&quot;%g&quot;). The output is _<a class="reference internal" href="#not">not</a> null-terminted.</p>
  205. <p>The output is optimal, i.e. the output string</p>
  206. <ol class="simple"><li>rounds back to the input number when read in (using round-to-nearest-even)</li>
  207. <li>is as short as possible,</li>
  208. <li>is as close to the input number as possible.</li>
  209. </ol>
  210. <p>Note: This function may temporarily write up to DtoaMinBufferLength characters into the buffer.</p>
  211. <p>This file contains an implementation of Junekey Jeon's Dragonbox algorithm.</p>
  212. <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>
  213. <p>The reference implementation also works with single-precision floating-point numbers and has options to configure the rounding mode.</p>
  214. <p>namespace Returns floor(x / 2^n).</p>
  215. <p>Technically, right-shift of negative integers is implementation defined... Should easily be optimized into SAR (or equivalent) instruction.</p>
  216. Returns whether value is divisible by 2^e2Returns whether value is divisible by 5^e5Returns (x * y) / 2^128</p>
  217. <div class="section" id="6">
  218. <h1><a class="toc-backref" href="#6">Imports</a></h1>
  219. <dl class="item">
  220. <a class="reference external" href="digitsutils.html">digitsutils</a>, <a class="reference external" href="assertions.html">assertions</a>
  221. </dl>
  222. </div>
  223. <div class="section" id="7">
  224. <h1><a class="toc-backref" href="#7">Types</a></h1>
  225. <dl class="item">
  226. <div id="BitsType">
  227. <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>
  228. <dd>
  229. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L50" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  230. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L50" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  231. </dd>
  232. </div>
  233. <div id="Double">
  234. <dt><pre><a href="dragonbox.html#Double"><span class="Identifier">Double</span></a> <span class="Other">=</span> <span class="Keyword">object</span>
  235. <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>
  236. <dd>
  237. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L53" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  238. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L53" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  239. </dd>
  240. </div>
  241. <div id="FloatingDecimal64">
  242. <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>
  243. <span class="Identifier">significand</span><span class="Operator">*</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a>
  244. <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>
  245. <dd>
  246. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L821" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  247. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L821" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  248. </dd>
  249. </div>
  250. <div id="uint64x2">
  251. <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>
  252. <span class="Identifier">hi</span><span class="Operator">*</span><span class="Other">:</span> <a href="system.html#uint64"><span class="Identifier">uint64</span></a>
  253. <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>
  254. <dd>
  255. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L140" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  256. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L140" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  257. </dd>
  258. </div>
  259. <div id="ValueType">
  260. <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>
  261. <dd>
  262. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L49" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  263. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L49" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  264. </dd>
  265. </div>
  266. </dl>
  267. </div>
  268. <div class="section" id="10">
  269. <h1><a class="toc-backref" href="#10">Consts</a></h1>
  270. <dl class="item">
  271. <div id="dtoaMinBufferLength">
  272. <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>
  273. <dd>
  274. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L31" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  275. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L31" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  276. </dd>
  277. </div>
  278. <div id="exponentBias">
  279. <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>
  280. <dd>
  281. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L61" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  282. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L61" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  283. </dd>
  284. </div>
  285. <div id="exponentMask">
  286. <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>
  287. <dd>
  288. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L73" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  289. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L73" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  290. </dd>
  291. </div>
  292. <div id="hiddenBit">
  293. <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>
  294. <dd>
  295. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L67" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  296. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L67" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  297. </dd>
  298. </div>
  299. <div id="maxIeeeExponent">
  300. <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>
  301. <dd>
  302. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L64" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  303. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L64" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  304. </dd>
  305. </div>
  306. <div id="significandMask">
  307. <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>
  308. <dd>
  309. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L70" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  310. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L70" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  311. </dd>
  312. </div>
  313. <div id="significandSize">
  314. <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>
  315. <dd>
  316. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L57" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  317. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L57" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  318. </dd>
  319. </div>
  320. <div id="signMask">
  321. <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>
  322. <dd>
  323. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L76" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  324. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L76" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  325. </dd>
  326. </div>
  327. </dl>
  328. </div>
  329. <div class="section" id="12">
  330. <h1><a class="toc-backref" href="#12">Procs</a></h1>
  331. <dl class="item">
  332. <div id="computeDelta-procs-all">
  333. <div id="computeDelta,uint64x2,int32">
  334. <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>
  335. <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>
  336. <dd>
  337. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L859" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  338. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L859" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  339. </dd>
  340. </div>
  341. </div>
  342. <div id="computePow10-procs-all">
  343. <div id="computePow10,int32">
  344. <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>
  345. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  346. <dd>
  347. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L145" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  348. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L145" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  349. </dd>
  350. </div>
  351. </div>
  352. <div id="constructDouble-procs-all">
  353. <div id="constructDouble,BitsType">
  354. <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>
  355. <dd>
  356. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L78" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  357. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L78" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  358. </dd>
  359. </div>
  360. <div id="constructDouble,ValueType">
  361. <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>
  362. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  363. <dd>
  364. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L81" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  365. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L81" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  366. </dd>
  367. </div>
  368. </div>
  369. <div id="decimalLength-procs-all">
  370. <div id="decimalLength,uint64">
  371. <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>
  372. <dd>
  373. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L1149" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  374. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L1149" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  375. </dd>
  376. </div>
  377. </div>
  378. <div id="floorDivPow2-procs-all">
  379. <div id="floorDivPow2,int32,int32">
  380. <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>
  381. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  382. <dd>
  383. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L117" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  384. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L117" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  385. </dd>
  386. </div>
  387. </div>
  388. <div id="floorLog2Pow10-procs-all">
  389. <div id="floorLog2Pow10,int32">
  390. <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>
  391. <dd>
  392. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L120" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  393. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L120" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  394. </dd>
  395. </div>
  396. </div>
  397. <div id="floorLog10Pow2-procs-all">
  398. <div id="floorLog10Pow2,int32">
  399. <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>
  400. <dd>
  401. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L125" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  402. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L125" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  403. </dd>
  404. </div>
  405. </div>
  406. <div id="floorLog10ThreeQuartersPow2-procs-all">
  407. <div id="floorLog10ThreeQuartersPow2,int32">
  408. <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>
  409. <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>
  410. <dd>
  411. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L130" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  412. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L130" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  413. </dd>
  414. </div>
  415. </div>
  416. <div id="formatDigits-procs-all">
  417. <div id="formatDigits,openArray[char],T,uint64,int">
  418. <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>
  419. <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>
  420. <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>
  421. <dd>
  422. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L1189" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  423. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L1189" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  424. </dd>
  425. </div>
  426. </div>
  427. <div id="hi32-procs-all">
  428. <div id="hi32,uint64">
  429. <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>
  430. <dd>
  431. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L885" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  432. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L885" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  433. </dd>
  434. </div>
  435. </div>
  436. <div id="isFinite-procs-all">
  437. <div id="isFinite,Double">
  438. <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>
  439. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  440. <dd>
  441. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L90" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  442. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L90" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  443. </dd>
  444. </div>
  445. </div>
  446. <div id="isInf-procs-all">
  447. <div id="isInf,Double">
  448. <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>
  449. <dd>
  450. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L93" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  451. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L93" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  452. </dd>
  453. </div>
  454. </div>
  455. <div id="isIntegralEndpoint-procs-all">
  456. <div id="isIntegralEndpoint,uint64,int32,int32">
  457. <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>
  458. <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>
  459. <dd>
  460. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L918" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  461. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L918" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  462. </dd>
  463. </div>
  464. </div>
  465. <div id="isIntegralMidpoint-procs-all">
  466. <div id="isIntegralMidpoint,uint64,int32,int32">
  467. <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>
  468. <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>
  469. <dd>
  470. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L927" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  471. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L927" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  472. </dd>
  473. </div>
  474. </div>
  475. <div id="isNaN-procs-all">
  476. <div id="isNaN,Double">
  477. <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>
  478. <dd>
  479. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L97" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  480. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L97" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  481. </dd>
  482. </div>
  483. </div>
  484. <div id="isZero-procs-all">
  485. <div id="isZero,Double">
  486. <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>
  487. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  488. <dd>
  489. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L101" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  490. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L101" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  491. </dd>
  492. </div>
  493. </div>
  494. <div id="lo32-procs-all">
  495. <div id="lo32,uint64">
  496. <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>
  497. <dd>
  498. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L882" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  499. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L882" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  500. </dd>
  501. </div>
  502. </div>
  503. <div id="mul128-procs-all">
  504. <div id="mul128,uint64,uint64">
  505. <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>
  506. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  507. <dd>
  508. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L888" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  509. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L888" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  510. </dd>
  511. </div>
  512. </div>
  513. <div id="mulParity-procs-all">
  514. <div id="mulParity,uint64,uint64x2,int32">
  515. <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>
  516. <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>
  517. <dd>
  518. 1 mulx, 1 mul
  519. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L909" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  520. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L909" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  521. </dd>
  522. </div>
  523. </div>
  524. <div id="mulShift-procs-all">
  525. <div id="mulShift,uint64,uint64x2">
  526. <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>
  527. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  528. <dd>
  529. 2 mulx
  530. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L901" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  531. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L901" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  532. </dd>
  533. </div>
  534. </div>
  535. <div id="multipleOfPow2-procs-all">
  536. <div id="multipleOfPow2,uint64,int32">
  537. <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>
  538. <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>
  539. <dd>
  540. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L777" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  541. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L777" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  542. </dd>
  543. </div>
  544. </div>
  545. <div id="multipleOfPow5-procs-all">
  546. <div id="multipleOfPow5,uint64,int32">
  547. <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>
  548. <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>
  549. <dd>
  550. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L783" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  551. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L783" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  552. </dd>
  553. </div>
  554. </div>
  555. <div id="physicalExponent-procs-all">
  556. <div id="physicalExponent,Double">
  557. <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>
  558. <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>
  559. <dd>
  560. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L87" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  561. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L87" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  562. </dd>
  563. </div>
  564. </div>
  565. <div id="physicalSignificand-procs-all">
  566. <div id="physicalSignificand,Double">
  567. <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>
  568. <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>
  569. <dd>
  570. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L84" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  571. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L84" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  572. </dd>
  573. </div>
  574. </div>
  575. <div id="printDecimalDigitsBackwards-procs-all">
  576. <div id="printDecimalDigitsBackwards,openArray[char],int,uint64">
  577. <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>
  578. <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>
  579. <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>
  580. <dd>
  581. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L1073" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  582. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L1073" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  583. </dd>
  584. </div>
  585. </div>
  586. <div id="signBit-procs-all">
  587. <div id="signBit,Double">
  588. <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>
  589. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  590. <dd>
  591. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L104" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  592. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L104" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  593. </dd>
  594. </div>
  595. </div>
  596. <div id="toChars-procs-all">
  597. <div id="toChars,openArray[char],float">
  598. <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> {.
  599. <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>
  600. <dd>
  601. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L1282" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  602. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L1282" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  603. </dd>
  604. </div>
  605. </div>
  606. <div id="toDecimal64-procs-all">
  607. <div id="toDecimal64,uint64,uint64">
  608. <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> {.
  609. <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>
  610. <dd>
  611. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L936" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  612. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L936" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  613. </dd>
  614. </div>
  615. </div>
  616. <div id="toDecimal64AsymmetricInterval-procs-all">
  617. <div id="toDecimal64AsymmetricInterval,int32">
  618. <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>
  619. <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>
  620. <dd>
  621. NB: accept_lower_endpoint = true accept_upper_endpoint = true
  622. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L826" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  623. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L826" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  624. </dd>
  625. </div>
  626. </div>
  627. <div id="utoa8DigitsSkipTrailingZeros-procs-all">
  628. <div id="utoa8DigitsSkipTrailingZeros,openArray[char],int,uint32">
  629. <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>
  630. <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>
  631. <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>
  632. <dd>
  633. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L1055" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  634. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L1055" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  635. </dd>
  636. </div>
  637. </div>
  638. </dl>
  639. </div>
  640. <div class="section" id="18">
  641. <h1><a class="toc-backref" href="#18">Templates</a></h1>
  642. <dl class="item">
  643. <div id="dragonbox_Assert-templates-all">
  644. <div id="dragonbox_Assert.t,untyped">
  645. <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>
  646. <dd>
  647. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/std/private/dragonbox.nim#L41" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  648. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/std/private/dragonbox.nim#L41" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  649. </dd>
  650. </div>
  651. </div>
  652. </dl>
  653. </div>
  654. </div>
  655. </div>
  656. <div class="twelve-columns footer">
  657. <span class="nim-sprite"></span>
  658. <br>
  659. <small style="color: var(--hint);">Made with Nim. Generated: 2025-01-09 12:00:37 UTC</small>
  660. </div>
  661. </div>
  662. </div>
  663. <script defer data-domain="nim-lang.org" src="https://plausible.io/js/plausible.js"></script>
  664. </body>
  665. </html>