| 1 |
// This file consists of testcases taken from the MSVC STL testsuite. |
| 2 |
|
| 3 |
// Copyright (c) Microsoft Corporation. |
| 4 |
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 5 |
|
| 6 |
|
| 7 |
// Copyright 2018 Ulf Adams |
| 8 |
// Copyright (c) Microsoft Corporation. All rights reserved. |
| 9 |
|
| 10 |
// Boost Software License - Version 1.0 - August 17th, 2003 |
| 11 |
|
| 12 |
// Permission is hereby granted, free of charge, to any person or organization |
| 13 |
// obtaining a copy of the software and accompanying documentation covered by |
| 14 |
// this license (the "Software") to use, reproduce, display, distribute, |
| 15 |
// execute, and transmit the Software, and to prepare derivative works of the |
| 16 |
// Software, and to permit third-parties to whom the Software is furnished to |
| 17 |
// do so, all subject to the following: |
| 18 |
|
| 19 |
// The copyright notices in the Software and this entire statement, including |
| 20 |
// the above license grant, this restriction and the following disclaimer, |
| 21 |
// must be included in all copies of the Software, in whole or in part, and |
| 22 |
// all derivative works of the Software, unless such copies or derivative |
| 23 |
// works are solely in the form of machine-executable object code generated by |
| 24 |
// a source language processor. |
| 25 |
|
| 26 |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 27 |
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 28 |
// FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT |
| 29 |
// SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE |
| 30 |
// FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, |
| 31 |
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 32 |
// DEALINGS IN THE SOFTWARE. |
| 33 |
|
| 34 |
// { dg-do run { target c++17 } } |
| 35 |
// { dg-require-effective-target ieee_floats } |
| 36 |
// { dg-require-effective-target size32plus } |
| 37 |
|
| 38 |
#include <charconv> |
| 39 |
|
| 40 |
#include <cstring> |
| 41 |
#include <limits> |
| 42 |
#include <optional> |
| 43 |
|
| 44 |
#include <testsuite_hooks.h> |
| 45 |
|
| 46 |
using namespace std; |
| 47 |
|
| 48 |
inline constexpr float float_inf = numeric_limits<float>::infinity(); |
| 49 |
inline constexpr float float_nan = numeric_limits<float>::quiet_NaN(); |
| 50 |
|
| 51 |
struct float_to_chars_testcase { |
| 52 |
float value; |
| 53 |
chars_format fmt; |
| 54 |
optional<int> precision; |
| 55 |
const char* correct; |
| 56 |
|
| 57 |
constexpr |
| 58 |
float_to_chars_testcase(float value, chars_format fmt, const char* correct) |
| 59 |
: value (value), fmt (fmt), precision (nullopt), correct (correct) |
| 60 |
{ } |
| 61 |
|
| 62 |
constexpr |
| 63 |
float_to_chars_testcase(float value, chars_format fmt, int precision, |
| 64 |
const char* correct) |
| 65 |
: value (value), fmt (fmt), precision (precision), correct (correct) |
| 66 |
{ } |
| 67 |
}; |
| 68 |
|
| 69 |
inline constexpr float_to_chars_testcase float_to_chars_test_cases[] = { |
| 70 |
// Test special cases (zero, inf, nan) and an ordinary case. Also test negative signs. |
| 71 |
{0.0f, chars_format::scientific, "0e+00"}, |
| 72 |
{-0.0f, chars_format::scientific, "-0e+00"}, |
| 73 |
{float_inf, chars_format::scientific, "inf"}, |
| 74 |
{-float_inf, chars_format::scientific, "-inf"}, |
| 75 |
{float_nan, chars_format::scientific, "nan"}, |
| 76 |
{-float_nan, chars_format::scientific, "-nan"}, |
| 77 |
{2.018f, chars_format::scientific, "2.018e+00"}, |
| 78 |
{-2.018f, chars_format::scientific, "-2.018e+00"}, |
| 79 |
|
| 80 |
// Ditto for fixed, which doesn't emit exponents. |
| 81 |
{0.0f, chars_format::fixed, "0"}, |
| 82 |
{-0.0f, chars_format::fixed, "-0"}, |
| 83 |
{float_inf, chars_format::fixed, "inf"}, |
| 84 |
{-float_inf, chars_format::fixed, "-inf"}, |
| 85 |
{float_nan, chars_format::fixed, "nan"}, |
| 86 |
{-float_nan, chars_format::fixed, "-nan"}, |
| 87 |
{2.018f, chars_format::fixed, "2.018"}, |
| 88 |
{-2.018f, chars_format::fixed, "-2.018"}, |
| 89 |
|
| 90 |
// Ditto for general, which selects fixed for the scientific exponent 0. |
| 91 |
{0.0f, chars_format::general, "0"}, |
| 92 |
{-0.0f, chars_format::general, "-0"}, |
| 93 |
{float_inf, chars_format::general, "inf"}, |
| 94 |
{-float_inf, chars_format::general, "-inf"}, |
| 95 |
{float_nan, chars_format::general, "nan"}, |
| 96 |
{-float_nan, chars_format::general, "-nan"}, |
| 97 |
{2.018f, chars_format::general, "2.018"}, |
| 98 |
{-2.018f, chars_format::general, "-2.018"}, |
| 99 |
|
| 100 |
// Ditto for plain, which selects fixed because it's shorter for these values. |
| 101 |
{0.0f, chars_format{}, "0"}, |
| 102 |
{-0.0f, chars_format{}, "-0"}, |
| 103 |
{float_inf, chars_format{}, "inf"}, |
| 104 |
{-float_inf, chars_format{}, "-inf"}, |
| 105 |
{float_nan, chars_format{}, "nan"}, |
| 106 |
{-float_nan, chars_format{}, "-nan"}, |
| 107 |
{2.018f, chars_format{}, "2.018"}, |
| 108 |
{-2.018f, chars_format{}, "-2.018"}, |
| 109 |
|
| 110 |
// Ditto for hex. |
| 111 |
{0.0f, chars_format::hex, "0p+0"}, |
| 112 |
{-0.0f, chars_format::hex, "-0p+0"}, |
| 113 |
{float_inf, chars_format::hex, "inf"}, |
| 114 |
{-float_inf, chars_format::hex, "-inf"}, |
| 115 |
{float_nan, chars_format::hex, "nan"}, |
| 116 |
{-float_nan, chars_format::hex, "-nan"}, |
| 117 |
{0x1.729p+0f, chars_format::hex, "1.729p+0"}, |
| 118 |
{-0x1.729p+0f, chars_format::hex, "-1.729p+0"}, |
| 119 |
|
| 120 |
// Ryu f2s_test.cc SwitchToSubnormal |
| 121 |
{1.1754944e-38f, chars_format::scientific, "1.1754944e-38"}, |
| 122 |
|
| 123 |
// Ryu f2s_test.cc MinAndMax |
| 124 |
{0x1.fffffep+127f, chars_format::scientific, "3.4028235e+38"}, |
| 125 |
{0x1.000000p-149f, chars_format::scientific, "1e-45"}, |
| 126 |
|
| 127 |
// Ryu f2s_test.cc BoundaryRoundEven |
| 128 |
{3.355445e7f, chars_format::scientific, "3.355445e+07"}, |
| 129 |
{8.999999e9f, chars_format::scientific, "9e+09"}, |
| 130 |
{3.4366717e10f, chars_format::scientific, "3.436672e+10"}, |
| 131 |
|
| 132 |
// Ryu f2s_test.cc ExactValueRoundEven |
| 133 |
{3.0540412e5f, chars_format::scientific, "3.0540412e+05"}, |
| 134 |
{8.0990312e3f, chars_format::scientific, "8.0990312e+03"}, |
| 135 |
|
| 136 |
// Ryu f2s_test.cc LotsOfTrailingZeros |
| 137 |
{2.4414062e-4f, chars_format::scientific, "2.4414062e-04"}, |
| 138 |
{2.4414062e-3f, chars_format::scientific, "2.4414062e-03"}, |
| 139 |
{4.3945312e-3f, chars_format::scientific, "4.3945312e-03"}, |
| 140 |
{6.3476562e-3f, chars_format::scientific, "6.3476562e-03"}, |
| 141 |
|
| 142 |
// Ryu f2s_test.cc Regression |
| 143 |
{4.7223665e21f, chars_format::scientific, "4.7223665e+21"}, |
| 144 |
{8388608.0f, chars_format::scientific, "8.388608e+06"}, |
| 145 |
{1.6777216e7f, chars_format::scientific, "1.6777216e+07"}, |
| 146 |
{3.3554436e7f, chars_format::scientific, "3.3554436e+07"}, |
| 147 |
{6.7131496e7f, chars_format::scientific, "6.7131496e+07"}, |
| 148 |
{1.9310392e-38f, chars_format::scientific, "1.9310392e-38"}, |
| 149 |
{-2.47e-43f, chars_format::scientific, "-2.47e-43"}, |
| 150 |
{1.993244e-38f, chars_format::scientific, "1.993244e-38"}, |
| 151 |
{4103.9003f, chars_format::scientific, "4.1039004e+03"}, |
| 152 |
{5.3399997e9f, chars_format::scientific, "5.3399997e+09"}, |
| 153 |
{6.0898e-39f, chars_format::scientific, "6.0898e-39"}, |
| 154 |
{0.0010310042f, chars_format::scientific, "1.0310042e-03"}, |
| 155 |
{2.8823261e17f, chars_format::scientific, "2.882326e+17"}, |
| 156 |
{0x1.5c87fap-84f, chars_format::scientific, "7.038531e-26"}, // TRANSITION, VSO-629490, should be 7.038531e-26f |
| 157 |
{9.2234038e17f, chars_format::scientific, "9.223404e+17"}, |
| 158 |
{6.7108872e7f, chars_format::scientific, "6.710887e+07"}, |
| 159 |
{1.0e-44f, chars_format::scientific, "1e-44"}, |
| 160 |
{2.816025e14f, chars_format::scientific, "2.816025e+14"}, |
| 161 |
{9.223372e18f, chars_format::scientific, "9.223372e+18"}, |
| 162 |
{1.5846085e29f, chars_format::scientific, "1.5846086e+29"}, |
| 163 |
{1.1811161e19f, chars_format::scientific, "1.1811161e+19"}, |
| 164 |
{5.368709e18f, chars_format::scientific, "5.368709e+18"}, |
| 165 |
{4.6143165e18f, chars_format::scientific, "4.6143166e+18"}, |
| 166 |
{0.007812537f, chars_format::scientific, "7.812537e-03"}, |
| 167 |
{1.4e-45f, chars_format::scientific, "1e-45"}, |
| 168 |
{1.18697724e20f, chars_format::scientific, "1.18697725e+20"}, |
| 169 |
{1.00014165e-36f, chars_format::scientific, "1.00014165e-36"}, |
| 170 |
{200.0f, chars_format::scientific, "2e+02"}, |
| 171 |
{3.3554432e7f, chars_format::scientific, "3.3554432e+07"}, |
| 172 |
|
| 173 |
// Ryu f2s_test.cc LooksLikePow5 |
| 174 |
{0x1.2a05f2p+59f, chars_format::scientific, "6.7108864e+17"}, |
| 175 |
{0x1.2a05f2p+60f, chars_format::scientific, "1.3421773e+18"}, |
| 176 |
{0x1.2a05f2p+61f, chars_format::scientific, "2.6843546e+18"}, |
| 177 |
|
| 178 |
// Ryu f2s_test.cc OutputLength |
| 179 |
{1.0f, chars_format::scientific, "1e+00"}, |
| 180 |
{1.2f, chars_format::scientific, "1.2e+00"}, |
| 181 |
{1.23f, chars_format::scientific, "1.23e+00"}, |
| 182 |
{1.234f, chars_format::scientific, "1.234e+00"}, |
| 183 |
{1.2345f, chars_format::scientific, "1.2345e+00"}, |
| 184 |
{1.23456f, chars_format::scientific, "1.23456e+00"}, |
| 185 |
{1.234567f, chars_format::scientific, "1.234567e+00"}, |
| 186 |
{1.2345678f, chars_format::scientific, "1.2345678e+00"}, |
| 187 |
{1.23456735e-36f, chars_format::scientific, "1.23456735e-36"}, |
| 188 |
|
| 189 |
// Test all exponents. |
| 190 |
{1.729e-45f, chars_format::scientific, "1e-45"}, |
| 191 |
{1.729e-44f, chars_format::scientific, "1.7e-44"}, |
| 192 |
{1.729e-43f, chars_format::scientific, "1.72e-43"}, |
| 193 |
{1.729e-42f, chars_format::scientific, "1.729e-42"}, |
| 194 |
{1.729e-41f, chars_format::scientific, "1.729e-41"}, |
| 195 |
{1.729e-40f, chars_format::scientific, "1.729e-40"}, |
| 196 |
{1.729e-39f, chars_format::scientific, "1.729e-39"}, |
| 197 |
{1.729e-38f, chars_format::scientific, "1.729e-38"}, |
| 198 |
{1.729e-37f, chars_format::scientific, "1.729e-37"}, |
| 199 |
{1.729e-36f, chars_format::scientific, "1.729e-36"}, |
| 200 |
{1.729e-35f, chars_format::scientific, "1.729e-35"}, |
| 201 |
{1.729e-34f, chars_format::scientific, "1.729e-34"}, |
| 202 |
{1.729e-33f, chars_format::scientific, "1.729e-33"}, |
| 203 |
{1.729e-32f, chars_format::scientific, "1.729e-32"}, |
| 204 |
{1.729e-31f, chars_format::scientific, "1.729e-31"}, |
| 205 |
{1.729e-30f, chars_format::scientific, "1.729e-30"}, |
| 206 |
{1.729e-29f, chars_format::scientific, "1.729e-29"}, |
| 207 |
{1.729e-28f, chars_format::scientific, "1.729e-28"}, |
| 208 |
{1.729e-27f, chars_format::scientific, "1.729e-27"}, |
| 209 |
{1.729e-26f, chars_format::scientific, "1.729e-26"}, |
| 210 |
{1.729e-25f, chars_format::scientific, "1.729e-25"}, |
| 211 |
{1.729e-24f, chars_format::scientific, "1.729e-24"}, |
| 212 |
{1.729e-23f, chars_format::scientific, "1.729e-23"}, |
| 213 |
{1.729e-22f, chars_format::scientific, "1.729e-22"}, |
| 214 |
{1.729e-21f, chars_format::scientific, "1.729e-21"}, |
| 215 |
{1.729e-20f, chars_format::scientific, "1.729e-20"}, |
| 216 |
{1.729e-19f, chars_format::scientific, "1.729e-19"}, |
| 217 |
{1.729e-18f, chars_format::scientific, "1.729e-18"}, |
| 218 |
{1.729e-17f, chars_format::scientific, "1.729e-17"}, |
| 219 |
{1.729e-16f, chars_format::scientific, "1.729e-16"}, |
| 220 |
{1.729e-15f, chars_format::scientific, "1.729e-15"}, |
| 221 |
{1.729e-14f, chars_format::scientific, "1.729e-14"}, |
| 222 |
{1.729e-13f, chars_format::scientific, "1.729e-13"}, |
| 223 |
{1.729e-12f, chars_format::scientific, "1.729e-12"}, |
| 224 |
{1.729e-11f, chars_format::scientific, "1.729e-11"}, |
| 225 |
{1.729e-10f, chars_format::scientific, "1.729e-10"}, |
| 226 |
{1.729e-9f, chars_format::scientific, "1.729e-09"}, |
| 227 |
{1.729e-8f, chars_format::scientific, "1.729e-08"}, |
| 228 |
{1.729e-7f, chars_format::scientific, "1.729e-07"}, |
| 229 |
{1.729e-6f, chars_format::scientific, "1.729e-06"}, |
| 230 |
{1.729e-5f, chars_format::scientific, "1.729e-05"}, |
| 231 |
{1.729e-4f, chars_format::scientific, "1.729e-04"}, |
| 232 |
{1.729e-3f, chars_format::scientific, "1.729e-03"}, |
| 233 |
{1.729e-2f, chars_format::scientific, "1.729e-02"}, |
| 234 |
{1.729e-1f, chars_format::scientific, "1.729e-01"}, |
| 235 |
{1.729e0f, chars_format::scientific, "1.729e+00"}, |
| 236 |
{1.729e1f, chars_format::scientific, "1.729e+01"}, |
| 237 |
{1.729e2f, chars_format::scientific, "1.729e+02"}, |
| 238 |
{1.729e3f, chars_format::scientific, "1.729e+03"}, |
| 239 |
{1.729e4f, chars_format::scientific, "1.729e+04"}, |
| 240 |
{1.729e5f, chars_format::scientific, "1.729e+05"}, |
| 241 |
{1.729e6f, chars_format::scientific, "1.729e+06"}, |
| 242 |
{1.729e7f, chars_format::scientific, "1.729e+07"}, |
| 243 |
{1.729e8f, chars_format::scientific, "1.729e+08"}, |
| 244 |
{1.729e9f, chars_format::scientific, "1.729e+09"}, |
| 245 |
{1.729e10f, chars_format::scientific, "1.729e+10"}, |
| 246 |
{1.729e11f, chars_format::scientific, "1.729e+11"}, |
| 247 |
{1.729e12f, chars_format::scientific, "1.729e+12"}, |
| 248 |
{1.729e13f, chars_format::scientific, "1.729e+13"}, |
| 249 |
{1.729e14f, chars_format::scientific, "1.729e+14"}, |
| 250 |
{1.729e15f, chars_format::scientific, "1.729e+15"}, |
| 251 |
{1.729e16f, chars_format::scientific, "1.729e+16"}, |
| 252 |
{1.729e17f, chars_format::scientific, "1.729e+17"}, |
| 253 |
{1.729e18f, chars_format::scientific, "1.729e+18"}, |
| 254 |
{1.729e19f, chars_format::scientific, "1.729e+19"}, |
| 255 |
{1.729e20f, chars_format::scientific, "1.729e+20"}, |
| 256 |
{1.729e21f, chars_format::scientific, "1.729e+21"}, |
| 257 |
{1.729e22f, chars_format::scientific, "1.729e+22"}, |
| 258 |
{1.729e23f, chars_format::scientific, "1.729e+23"}, |
| 259 |
{1.729e24f, chars_format::scientific, "1.729e+24"}, |
| 260 |
{1.729e25f, chars_format::scientific, "1.729e+25"}, |
| 261 |
{1.729e26f, chars_format::scientific, "1.729e+26"}, |
| 262 |
{1.729e27f, chars_format::scientific, "1.729e+27"}, |
| 263 |
{1.729e28f, chars_format::scientific, "1.729e+28"}, |
| 264 |
{1.729e29f, chars_format::scientific, "1.729e+29"}, |
| 265 |
{1.729e30f, chars_format::scientific, "1.729e+30"}, |
| 266 |
{1.729e31f, chars_format::scientific, "1.729e+31"}, |
| 267 |
{1.729e32f, chars_format::scientific, "1.729e+32"}, |
| 268 |
{1.729e33f, chars_format::scientific, "1.729e+33"}, |
| 269 |
{1.729e34f, chars_format::scientific, "1.729e+34"}, |
| 270 |
{1.729e35f, chars_format::scientific, "1.729e+35"}, |
| 271 |
{1.729e36f, chars_format::scientific, "1.729e+36"}, |
| 272 |
{1.729e37f, chars_format::scientific, "1.729e+37"}, |
| 273 |
{1.729e38f, chars_format::scientific, "1.729e+38"}, |
| 274 |
|
| 275 |
// Test all of the cases for fixed notation, including the non-Ryu fallback for large integers. |
| 276 |
{1.729e-4f, chars_format::fixed, "0.0001729"}, |
| 277 |
{1.729e-3f, chars_format::fixed, "0.001729"}, |
| 278 |
{1.729e-2f, chars_format::fixed, "0.01729"}, |
| 279 |
{1.729e-1f, chars_format::fixed, "0.1729"}, |
| 280 |
{1.729e0f, chars_format::fixed, "1.729"}, |
| 281 |
{1.729e1f, chars_format::fixed, "17.29"}, |
| 282 |
{1.729e2f, chars_format::fixed, "172.9"}, |
| 283 |
{1.729e3f, chars_format::fixed, "1729"}, |
| 284 |
{1.729e4f, chars_format::fixed, "17290"}, |
| 285 |
{1.729e5f, chars_format::fixed, "172900"}, |
| 286 |
{1.729e6f, chars_format::fixed, "1729000"}, |
| 287 |
{1.729e7f, chars_format::fixed, "17290000"}, |
| 288 |
{1.729e8f, chars_format::fixed, "172900000"}, |
| 289 |
{1.729e9f, chars_format::fixed, "1728999936"}, |
| 290 |
{1.729e10f, chars_format::fixed, "17290000384"}, |
| 291 |
{1.729e11f, chars_format::fixed, "172900007936"}, |
| 292 |
{1.729e12f, chars_format::fixed, "1728999981056"}, |
| 293 |
{1.729e13f, chars_format::fixed, "17290000072704"}, |
| 294 |
{1.729e14f, chars_format::fixed, "172899998629888"}, |
| 295 |
{1.729e15f, chars_format::fixed, "1729000019853312"}, |
| 296 |
{1.729e16f, chars_format::fixed, "17289999661662208"}, |
| 297 |
{1.729e17f, chars_format::fixed, "172900007354040320"}, |
| 298 |
{1.729e18f, chars_format::fixed, "1729000039180664832"}, |
| 299 |
{1.729e19f, chars_format::fixed, "17289999567172927488"}, |
| 300 |
{1.729e20f, chars_format::fixed, "172899997870752530432"}, |
| 301 |
{1.729e21f, chars_format::fixed, "1729000013891897393152"}, |
| 302 |
{1.729e22f, chars_format::fixed, "17290000138918973931520"}, |
| 303 |
{1.729e23f, chars_format::fixed, "172899999137389925629952"}, |
| 304 |
{1.729e24f, chars_format::fixed, "1729000063431493294227456"}, |
| 305 |
{1.729e25f, chars_format::fixed, "17289999481393428335427584"}, |
| 306 |
{1.729e26f, chars_format::fixed, "172900004037306320209051648"}, |
| 307 |
{1.729e27f, chars_format::fixed, "1729000040373063202090516480"}, |
| 308 |
{1.729e28f, chars_format::fixed, "17290000403730632020905164800"}, |
| 309 |
{1.729e29f, chars_format::fixed, "172900004037306320209051648000"}, |
| 310 |
{1.729e30f, chars_format::fixed, "1728999964815199476176193060864"}, |
| 311 |
{1.729e31f, chars_format::fixed, "17290000252614904569076517961728"}, |
| 312 |
{1.729e32f, chars_format::fixed, "172899990436890849544473432555520"}, |
| 313 |
{1.729e33f, chars_format::fixed, "1729000059111413406117268687945728"}, |
| 314 |
{1.729e34f, chars_format::fixed, "17290000281629124239827618154676224"}, |
| 315 |
{1.729e35f, chars_format::fixed, "172899995388651006685994532152016896"}, |
| 316 |
{1.729e36f, chars_format::fixed, "1728999993500591323992114118292144128"}, |
| 317 |
{1.729e37f, chars_format::fixed, "17289999935005913239921141182921441280"}, |
| 318 |
{1.729e38f, chars_format::fixed, "172899996814757931942752608835808002048"}, |
| 319 |
|
| 320 |
// Also test one-digit cases, where the decimal point can't appear between digits like "17.29". |
| 321 |
{7e-3f, chars_format::fixed, "0.007"}, |
| 322 |
{7e-2f, chars_format::fixed, "0.07"}, |
| 323 |
{7e-1f, chars_format::fixed, "0.7"}, |
| 324 |
{7e0f, chars_format::fixed, "7"}, |
| 325 |
{7e1f, chars_format::fixed, "70"}, |
| 326 |
{7e2f, chars_format::fixed, "700"}, |
| 327 |
{7e3f, chars_format::fixed, "7000"}, |
| 328 |
|
| 329 |
// Test the maximum value in fixed notation. |
| 330 |
{0x1.fffffep+127f, chars_format::fixed, "340282346638528859811704183484516925440"}, |
| 331 |
|
| 332 |
// Test highly-trimmed powers of 2. |
| 333 |
{0x1p118f, chars_format::fixed, "332306998946228968225951765070086144"}, |
| 334 |
{0x1p118f, chars_format::scientific, "3.32307e+35"}, |
| 335 |
{0x1p119f, chars_format::fixed, "664613997892457936451903530140172288"}, |
| 336 |
{0x1p119f, chars_format::scientific, "6.64614e+35"}, |
| 337 |
|
| 338 |
// Test powers of 10 that are exactly representable. |
| 339 |
{1e0f, chars_format::fixed, "1"}, |
| 340 |
{1e1f, chars_format::fixed, "10"}, |
| 341 |
{1e2f, chars_format::fixed, "100"}, |
| 342 |
{1e3f, chars_format::fixed, "1000"}, |
| 343 |
{1e4f, chars_format::fixed, "10000"}, |
| 344 |
{1e5f, chars_format::fixed, "100000"}, |
| 345 |
{1e6f, chars_format::fixed, "1000000"}, |
| 346 |
{1e7f, chars_format::fixed, "10000000"}, |
| 347 |
{1e8f, chars_format::fixed, "100000000"}, |
| 348 |
{1e9f, chars_format::fixed, "1000000000"}, |
| 349 |
{1e10f, chars_format::fixed, "10000000000"}, |
| 350 |
|
| 351 |
// Test powers of 10 that aren't exactly representable. |
| 352 |
// This exercises the "adjustment" code. |
| 353 |
{1e11f, chars_format::fixed, "99999997952"}, |
| 354 |
{1e12f, chars_format::fixed, "999999995904"}, |
| 355 |
{1e13f, chars_format::fixed, "9999999827968"}, |
| 356 |
{1e14f, chars_format::fixed, "100000000376832"}, |
| 357 |
{1e15f, chars_format::fixed, "999999986991104"}, |
| 358 |
{1e16f, chars_format::fixed, "10000000272564224"}, |
| 359 |
{1e17f, chars_format::fixed, "99999998430674944"}, |
| 360 |
{1e18f, chars_format::fixed, "999999984306749440"}, |
| 361 |
{1e19f, chars_format::fixed, "9999999980506447872"}, |
| 362 |
{1e20f, chars_format::fixed, "100000002004087734272"}, |
| 363 |
{1e21f, chars_format::fixed, "1000000020040877342720"}, |
| 364 |
{1e22f, chars_format::fixed, "9999999778196308361216"}, |
| 365 |
{1e23f, chars_format::fixed, "99999997781963083612160"}, |
| 366 |
{1e24f, chars_format::fixed, "1000000013848427855085568"}, |
| 367 |
{1e25f, chars_format::fixed, "9999999562023526247432192"}, |
| 368 |
{1e26f, chars_format::fixed, "100000002537764290115403776"}, |
| 369 |
{1e27f, chars_format::fixed, "999999988484154753734934528"}, |
| 370 |
{1e28f, chars_format::fixed, "9999999442119689768320106496"}, |
| 371 |
{1e29f, chars_format::fixed, "100000001504746621987668885504"}, |
| 372 |
{1e30f, chars_format::fixed, "1000000015047466219876688855040"}, |
| 373 |
{1e31f, chars_format::fixed, "9999999848243207295109594873856"}, |
| 374 |
{1e32f, chars_format::fixed, "100000003318135351409612647563264"}, |
| 375 |
{1e33f, chars_format::fixed, "999999994495727286427992885035008"}, |
| 376 |
{1e34f, chars_format::fixed, "9999999790214767953607394487959552"}, |
| 377 |
{1e35f, chars_format::fixed, "100000004091847875962975319375216640"}, |
| 378 |
{1e36f, chars_format::fixed, "999999961690316245365415600208216064"}, |
| 379 |
{1e37f, chars_format::fixed, "9999999933815812510711506376257961984"}, |
| 380 |
{1e38f, chars_format::fixed, "99999996802856924650656260769173209088"}, |
| 381 |
|
| 382 |
// These numbers have odd mantissas (unaffected by shifting) |
| 383 |
// that are barely within the "max shifted mantissa" limit. |
| 384 |
// They're exactly-representable multiples of powers of 10, and can use Ryu with zero-filling. |
| 385 |
{3355443e1f, chars_format::fixed, "33554430"}, |
| 386 |
{671087e2f, chars_format::fixed, "67108700"}, |
| 387 |
{134217e3f, chars_format::fixed, "134217000"}, |
| 388 |
{26843e4f, chars_format::fixed, "268430000"}, |
| 389 |
{5367e5f, chars_format::fixed, "536700000"}, |
| 390 |
{1073e6f, chars_format::fixed, "1073000000"}, |
| 391 |
{213e7f, chars_format::fixed, "2130000000"}, |
| 392 |
{41e8f, chars_format::fixed, "4100000000"}, |
| 393 |
{7e9f, chars_format::fixed, "7000000000"}, |
| 394 |
{1e10f, chars_format::fixed, "10000000000"}, |
| 395 |
|
| 396 |
// These numbers have odd mantissas (unaffected by shifting) |
| 397 |
// that are barely above the "max shifted mantissa" limit. |
| 398 |
// This activates the non-Ryu fallback for large integers. |
| 399 |
{3355445e1f, chars_format::fixed, "33554448"}, |
| 400 |
{671089e2f, chars_format::fixed, "67108896"}, |
| 401 |
{134219e3f, chars_format::fixed, "134219008"}, |
| 402 |
{26845e4f, chars_format::fixed, "268449984"}, |
| 403 |
{5369e5f, chars_format::fixed, "536899968"}, |
| 404 |
{1075e6f, chars_format::fixed, "1075000064"}, |
| 405 |
{215e7f, chars_format::fixed, "2150000128"}, |
| 406 |
{43e8f, chars_format::fixed, "4300000256"}, |
| 407 |
{9e9f, chars_format::fixed, "8999999488"}, |
| 408 |
{3e10f, chars_format::fixed, "30000001024"}, |
| 409 |
|
| 410 |
// Test the mantissa shifting logic. |
| 411 |
{5495808e5f, chars_format::fixed, "549580800000"}, // 5367 * 2^10 |
| 412 |
{5497856e5f, chars_format::fixed, "549785567232"}, // 5369 * 2^10 |
| 413 |
|
| 414 |
// Inspect all of those numbers in scientific notation. |
| 415 |
// For the within-limit numbers, this verifies that Ryu is actually being used with zero-filling above. |
| 416 |
// For the above-limit numbers, this tests Ryu's trimming. |
| 417 |
{3355443e1f, chars_format::scientific, "3.355443e+07"}, |
| 418 |
{671087e2f, chars_format::scientific, "6.71087e+07"}, |
| 419 |
{134217e3f, chars_format::scientific, "1.34217e+08"}, |
| 420 |
{26843e4f, chars_format::scientific, "2.6843e+08"}, |
| 421 |
{5367e5f, chars_format::scientific, "5.367e+08"}, |
| 422 |
{1073e6f, chars_format::scientific, "1.073e+09"}, |
| 423 |
{213e7f, chars_format::scientific, "2.13e+09"}, |
| 424 |
{41e8f, chars_format::scientific, "4.1e+09"}, |
| 425 |
{7e9f, chars_format::scientific, "7e+09"}, |
| 426 |
{1e10f, chars_format::scientific, "1e+10"}, |
| 427 |
{3355445e1f, chars_format::scientific, "3.355445e+07"}, |
| 428 |
{671089e2f, chars_format::scientific, "6.71089e+07"}, |
| 429 |
{134219e3f, chars_format::scientific, "1.34219e+08"}, |
| 430 |
{26845e4f, chars_format::scientific, "2.6845e+08"}, |
| 431 |
{5369e5f, chars_format::scientific, "5.369e+08"}, |
| 432 |
{1075e6f, chars_format::scientific, "1.075e+09"}, |
| 433 |
{215e7f, chars_format::scientific, "2.15e+09"}, |
| 434 |
{43e8f, chars_format::scientific, "4.3e+09"}, |
| 435 |
{9e9f, chars_format::scientific, "9e+09"}, |
| 436 |
{3e10f, chars_format::scientific, "3e+10"}, |
| 437 |
{5495808e5f, chars_format::scientific, "5.495808e+11"}, |
| 438 |
{5497856e5f, chars_format::scientific, "5.497856e+11"}, |
| 439 |
|
| 440 |
// Test the switching logic of chars_format::general. |
| 441 |
// C11 7.21.6.1 "The fprintf function"/8: |
| 442 |
// "Let P equal [...] 6 if the precision is omitted [...]. |
| 443 |
// Then, if a conversion with style E would have an exponent of X: |
| 444 |
// - if P > X >= -4, the conversion is with style f [...]. |
| 445 |
// - otherwise, the conversion is with style e [...]." |
| 446 |
{1e-6f, chars_format::general, "1e-06"}, |
| 447 |
{1e-5f, chars_format::general, "1e-05"}, |
| 448 |
{1e-4f, chars_format::general, "0.0001"}, |
| 449 |
{1e-3f, chars_format::general, "0.001"}, |
| 450 |
{1e-2f, chars_format::general, "0.01"}, |
| 451 |
{1e-1f, chars_format::general, "0.1"}, |
| 452 |
{1e0f, chars_format::general, "1"}, |
| 453 |
{1e1f, chars_format::general, "10"}, |
| 454 |
{1e2f, chars_format::general, "100"}, |
| 455 |
{1e3f, chars_format::general, "1000"}, |
| 456 |
{1e4f, chars_format::general, "10000"}, |
| 457 |
{1e5f, chars_format::general, "100000"}, |
| 458 |
{1e6f, chars_format::general, "1e+06"}, |
| 459 |
{1e7f, chars_format::general, "1e+07"}, |
| 460 |
{1.234e-6f, chars_format::general, "1.234e-06"}, |
| 461 |
{1.234e-5f, chars_format::general, "1.234e-05"}, |
| 462 |
{1.234e-4f, chars_format::general, "0.0001234"}, |
| 463 |
{1.234e-3f, chars_format::general, "0.001234"}, |
| 464 |
{1.234e-2f, chars_format::general, "0.01234"}, |
| 465 |
{1.234e-1f, chars_format::general, "0.1234"}, |
| 466 |
{1.234e0f, chars_format::general, "1.234"}, |
| 467 |
{1.234e1f, chars_format::general, "12.34"}, |
| 468 |
{1.234e2f, chars_format::general, "123.4"}, |
| 469 |
{1.234e3f, chars_format::general, "1234"}, |
| 470 |
{1.234e4f, chars_format::general, "12340"}, |
| 471 |
{1.234e5f, chars_format::general, "123400"}, |
| 472 |
{1.234e6f, chars_format::general, "1.234e+06"}, |
| 473 |
{1.234e7f, chars_format::general, "1.234e+07"}, |
| 474 |
{1.234e8f, chars_format::general, "1.234e+08"}, |
| 475 |
{1.234e9f, chars_format::general, "1.234e+09"}, |
| 476 |
{1.234e10f, chars_format::general, "1.234e+10"}, |
| 477 |
|
| 478 |
// Test the switching logic of the plain overload. |
| 479 |
// N4762 19.19.2 [charconv.to.chars]/8: |
| 480 |
// "The conversion specifier is f or e, chosen according to the requirement |
| 481 |
// for a shortest representation (see above); a tie is resolved in favor of f." |
| 482 |
{1e-6f, chars_format{}, "1e-06"}, |
| 483 |
{1e-5f, chars_format{}, "1e-05"}, |
| 484 |
{1e-4f, chars_format{}, "1e-04"}, |
| 485 |
{1e-3f, chars_format{}, "0.001"}, |
| 486 |
{1e-2f, chars_format{}, "0.01"}, |
| 487 |
{1e-1f, chars_format{}, "0.1"}, |
| 488 |
{1e0f, chars_format{}, "1"}, |
| 489 |
{1e1f, chars_format{}, "10"}, |
| 490 |
{1e2f, chars_format{}, "100"}, |
| 491 |
{1e3f, chars_format{}, "1000"}, |
| 492 |
{1e4f, chars_format{}, "10000"}, |
| 493 |
{1e5f, chars_format{}, "1e+05"}, |
| 494 |
{1e6f, chars_format{}, "1e+06"}, |
| 495 |
{1e7f, chars_format{}, "1e+07"}, |
| 496 |
{1.234e-6f, chars_format{}, "1.234e-06"}, |
| 497 |
{1.234e-5f, chars_format{}, "1.234e-05"}, |
| 498 |
{1.234e-4f, chars_format{}, "0.0001234"}, |
| 499 |
{1.234e-3f, chars_format{}, "0.001234"}, |
| 500 |
{1.234e-2f, chars_format{}, "0.01234"}, |
| 501 |
{1.234e-1f, chars_format{}, "0.1234"}, |
| 502 |
{1.234e0f, chars_format{}, "1.234"}, |
| 503 |
{1.234e1f, chars_format{}, "12.34"}, |
| 504 |
{1.234e2f, chars_format{}, "123.4"}, |
| 505 |
{1.234e3f, chars_format{}, "1234"}, |
| 506 |
{1.234e4f, chars_format{}, "12340"}, |
| 507 |
{1.234e5f, chars_format{}, "123400"}, |
| 508 |
{1.234e6f, chars_format{}, "1234000"}, |
| 509 |
{1.234e7f, chars_format{}, "12340000"}, |
| 510 |
{1.234e8f, chars_format{}, "123400000"}, |
| 511 |
{1.234e9f, chars_format{}, "1.234e+09"}, |
| 512 |
{1.234e10f, chars_format{}, "1.234e+10"}, |
| 513 |
|
| 514 |
// GH-331 "<charconv>: Test plain shortest's large integer fallback" |
| 515 |
// The exactly-representable integer 123456790528 is 12 digits, but scientific shortest needs 13 characters. |
| 516 |
// Therefore, the plain overload must select fixed notation. Because this 12-digit number exceeds the 9-digit |
| 517 |
// round-trip limit, we can't use Ryu - we need to activate the large integer fallback (currently, long division for |
| 518 |
// float). |
| 519 |
{123456790528.0f, chars_format::scientific, "1.2345679e+11"}, |
| 520 |
{123456790528.0f, chars_format{}, "123456790528"}, |
| 521 |
|
| 522 |
// Test hexfloat corner cases. |
| 523 |
{0x1.728p+0f, chars_format::hex, "1.728p+0"}, // instead of "2.e5p-1" |
| 524 |
{0x0.000002p-126f, chars_format::hex, "1p-149"}, // min subnormal |
| 525 |
{0x0.fffffep-126f, chars_format::hex, "1.fffffcp-127"}, // max subnormal |
| 526 |
{0x1p-126f, chars_format::hex, "1p-126"}, // min normal |
| 527 |
{0x1.fffffep+127f, chars_format::hex, "1.fffffep+127"}, // max normal |
| 528 |
|
| 529 |
// Test hexfloat exponents. |
| 530 |
{0x1p-109f, chars_format::hex, "1p-109"}, |
| 531 |
{0x1p-99f, chars_format::hex, "1p-99"}, |
| 532 |
{0x1p-9f, chars_format::hex, "1p-9"}, |
| 533 |
{0x1p+0f, chars_format::hex, "1p+0"}, |
| 534 |
{0x1p+9f, chars_format::hex, "1p+9"}, |
| 535 |
{0x1p+99f, chars_format::hex, "1p+99"}, |
| 536 |
{0x1p+109f, chars_format::hex, "1p+109"}, |
| 537 |
|
| 538 |
// Test hexfloat hexits. |
| 539 |
{0x1.0123p+0f, chars_format::hex, "1.0123p+0"}, |
| 540 |
{0x1.4567p+0f, chars_format::hex, "1.4567p+0"}, |
| 541 |
{0x1.89abp+0f, chars_format::hex, "1.89abp+0"}, |
| 542 |
{0x1.cdefp+0f, chars_format::hex, "1.cdefp+0"}, |
| 543 |
|
| 544 |
// Test hexfloat trimming. |
| 545 |
{0x1.00000ap+0f, chars_format::hex, "1.00000ap+0"}, |
| 546 |
{0x1.0000ap+0f, chars_format::hex, "1.0000ap+0"}, |
| 547 |
{0x1.000ap+0f, chars_format::hex, "1.000ap+0"}, |
| 548 |
{0x1.00ap+0f, chars_format::hex, "1.00ap+0"}, |
| 549 |
{0x1.0ap+0f, chars_format::hex, "1.0ap+0"}, |
| 550 |
{0x1.ap+0f, chars_format::hex, "1.ap+0"}, |
| 551 |
{0x1p+0f, chars_format::hex, "1p+0"}, |
| 552 |
|
| 553 |
// https://www.exploringbinary.com/the-shortest-decimal-string-that-round-trips-may-not-be-the-nearest/ |
| 554 |
// This is an exhaustive list of anomalous values. |
| 555 |
// (See double_to_chars_test_cases.hpp for more details.) |
| 556 |
{0x1p90f, chars_format::scientific, "1.2379401e+27"}, |
| 557 |
{0x1p87f, chars_format::scientific, "1.5474251e+26"}, |
| 558 |
{0x1p-96f, chars_format::scientific, "1.2621775e-29"}, |
| 559 |
}; |
| 560 |
|
| 561 |
inline constexpr float_to_chars_testcase float_fixed_precision_to_chars_test_cases[] = { |
| 562 |
// Test special cases (zero, inf, nan) and an ordinary case. Also test negative signs. |
| 563 |
{0.0f, chars_format::fixed, 4, "0.0000"}, |
| 564 |
{-0.0f, chars_format::fixed, 4, "-0.0000"}, |
| 565 |
{float_inf, chars_format::fixed, 4, "inf"}, |
| 566 |
{-float_inf, chars_format::fixed, 4, "-inf"}, |
| 567 |
{float_nan, chars_format::fixed, 4, "nan"}, |
| 568 |
{-float_nan, chars_format::fixed, 4, "-nan"}, |
| 569 |
{1.729f, chars_format::fixed, 4, "1.7290"}, |
| 570 |
{-1.729f, chars_format::fixed, 4, "-1.7290"}, |
| 571 |
|
| 572 |
// Ryu Printf Zero |
| 573 |
{0.0f, chars_format::fixed, 4, "0.0000"}, |
| 574 |
{0.0f, chars_format::fixed, 3, "0.000"}, |
| 575 |
{0.0f, chars_format::fixed, 2, "0.00"}, |
| 576 |
{0.0f, chars_format::fixed, 1, "0.0"}, |
| 577 |
{0.0f, chars_format::fixed, 0, "0"}, |
| 578 |
|
| 579 |
// Test corner cases. |
| 580 |
{0x0.000002p-126f, chars_format::fixed, 149, // min subnormal |
| 581 |
"0." |
| 582 |
"0000000000000000000000000000000000000000000014012984643248170709237295832899161312802619418765157717570682" |
| 583 |
"8388979108268586060148663818836212158203125"}, |
| 584 |
{0x0.fffffep-126f, chars_format::fixed, 149, // max subnormal |
| 585 |
"0." |
| 586 |
"0000000000000000000000000000000000000117549421069244107548702944484928734882705242874589333385717453057158" |
| 587 |
"8870475618904265502351336181163787841796875"}, |
| 588 |
{0x1p-126f, chars_format::fixed, 126, // min normal |
| 589 |
"0." |
| 590 |
"0000000000000000000000000000000000000117549435082228750796873653722224567781866555677208752150875170627841" |
| 591 |
"72594547271728515625"}, |
| 592 |
{0x1.fffffep+127f, chars_format::fixed, 0, // max normal |
| 593 |
"340282346638528859811704183484516925440"}, |
| 594 |
|
| 595 |
// Ryu Printf AllPowersOfTen |
| 596 |
// These values test every power of ten that's within the range of floats. |
| 597 |
{1e-44f, chars_format::fixed, 149, |
| 598 |
"0." |
| 599 |
"0000000000000000000000000000000000000000000098090892502737194964661070830294129189618335931356104022994779" |
| 600 |
"8722853757880102421040646731853485107421875"}, |
| 601 |
{1e-43f, chars_format::fixed, 149, |
| 602 |
"0." |
| 603 |
"0000000000000000000000000000000000000000000994921909670620120355848004135840453208985978732326197947518481" |
| 604 |
"5617516687069610270555131137371063232421875"}, |
| 605 |
{1e-42f, chars_format::fixed, 148, |
| 606 |
"0." |
| 607 |
"0000000000000000000000000000000000000000010005271035279193886395429224690001177341070264998322610345467546" |
| 608 |
"973108330377044694614596664905548095703125"}, |
| 609 |
{1e-41f, chars_format::fixed, 144, |
| 610 |
"0." |
| 611 |
"0000000000000000000000000000000000000000099996658414218946181117343063568415128159492172308165472584392738" |
| 612 |
"37549166046301252208650112152099609375"}, |
| 613 |
{1e-40f, chars_format::fixed, 148, |
| 614 |
"0." |
| 615 |
"0000000000000000000000000000000000000000999994610111475958152591905227349949604220526961919185041279068749" |
| 616 |
"432712426283842432894743978977203369140625"}, |
| 617 |
{1e-39f, chars_format::fixed, 146, |
| 618 |
"0." |
| 619 |
"0000000000000000000000000000000000000010000002153053332574208756001456831092687456480096866911043660970225" |
| 620 |
"6827159061458587530069053173065185546875"}, |
| 621 |
{1e-38f, chars_format::fixed, 148, |
| 622 |
"0." |
| 623 |
"0000000000000000000000000000000000000099999993504564039245746141539976645128551939195729831580121174560891" |
| 624 |
"149363239804870318039320409297943115234375"}, |
| 625 |
{1e-37f, chars_format::fixed, 145, |
| 626 |
"0." |
| 627 |
"0000000000000000000000000000000000000999999991097578965450144252348949782882164643167775990861842615891642" |
| 628 |
"849224041356137604452669620513916015625"}, |
| 629 |
{1e-36f, chars_format::fixed, 143, |
| 630 |
"0." |
| 631 |
"0000000000000000000000000000000000010000000359391298238442905219082964481594808441361581309103473121178279" |
| 632 |
"3369735600208514370024204254150390625"}, |
| 633 |
{1e-35f, chars_format::fixed, 139, |
| 634 |
"0." |
| 635 |
"0000000000000000000000000000000000100000001800250948048663201408455778204855436374880527489094543362735389" |
| 636 |
"990803014370612800121307373046875"}, |
| 637 |
{1e-34f, chars_format::fixed, 136, |
| 638 |
"0." |
| 639 |
"0000000000000000000000000000000001000000046701102029858885626602539647826036732368569844521988439212112353" |
| 640 |
"970951517112553119659423828125"}, |
| 641 |
{1e-33f, chars_format::fixed, 131, |
| 642 |
"0." |
| 643 |
"0000000000000000000000000000000010000000237422279903610827365881541552040508374727581888171540347443055907" |
| 644 |
"2061441838741302490234375"}, |
| 645 |
{1e-32f, chars_format::fixed, 130, |
| 646 |
"0." |
| 647 |
"0000000000000000000000000000000100000002374222799036108273658815415520405083747275818881715403474430559072" |
| 648 |
"061441838741302490234375"}, |
| 649 |
{1e-31f, chars_format::fixed, 126, |
| 650 |
"0." |
| 651 |
"0000000000000000000000000000000999999979661189834525301187760534009369837919272799809863871978166116605279" |
| 652 |
"96718883514404296875"}, |
| 653 |
{1e-30f, chars_format::fixed, 118, |
| 654 |
"0." |
| 655 |
"0000000000000000000000000000010000000031710768509710513471352647538147514756461109453056224083411507308483" |
| 656 |
"123779296875"}, |
| 657 |
{1e-29f, chars_format::fixed, 117, |
| 658 |
"0." |
| 659 |
"0000000000000000000000000000100000000317107685097105134713526475381475147564611094530562240834115073084831" |
| 660 |
"23779296875"}, |
| 661 |
{1e-28f, chars_format::fixed, 116, |
| 662 |
"0." |
| 663 |
"0000000000000000000000000001000000003171076850971051347135264753814751475646110945305622408341150730848312" |
| 664 |
"3779296875"}, |
| 665 |
{1e-27f, chars_format::fixed, 112, |
| 666 |
"0." |
| 667 |
"0000000000000000000000000010000000272452011558114995103349890361263429573723815479979748488403856754302978" |
| 668 |
"515625"}, |
| 669 |
{1e-26f, chars_format::fixed, 109, |
| 670 |
"0." |
| 671 |
"0000000000000000000000000099999998872660226806678244921543018442779658661034858369021094404160976409912109" |
| 672 |
"375"}, |
| 673 |
{1e-25f, chars_format::fixed, 104, |
| 674 |
"0." |
| 675 |
"00000000000000000000000010000000195414813782625560981110772657866336832199749551364220678806304931640625"}, |
| 676 |
{1e-24f, chars_format::fixed, 103, |
| 677 |
"0." |
| 678 |
"0000000000000000000000010000000195414813782625560981110772657866336832199749551364220678806304931640625"}, |
| 679 |
{1e-23f, chars_format::fixed, 99, |
| 680 |
"0.000000000000000000000009999999998199587477372609628178631337169779413898140774108469486236572265625"}, |
| 681 |
{1e-22f, chars_format::fixed, 97, |
| 682 |
"0.0000000000000000000001000000031374394956577733179287005745028427128318071481771767139434814453125"}, |
| 683 |
{1e-21f, chars_format::fixed, 88, |
| 684 |
"0.0000000000000000000009999999682655225388967887463487205224055287544615566730499267578125"}, |
| 685 |
{1e-20f, chars_format::fixed, 87, |
| 686 |
"0.000000000000000000009999999682655225388967887463487205224055287544615566730499267578125"}, |
| 687 |
{1e-19f, chars_format::fixed, 86, |
| 688 |
"0.00000000000000000009999999682655225388967887463487205224055287544615566730499267578125"}, |
| 689 |
{1e-18f, chars_format::fixed, 83, |
| 690 |
"0.00000000000000000100000004581370496574313326554328540396454627625644207000732421875"}, |
| 691 |
{1e-17f, chars_format::fixed, 79, |
| 692 |
"0.0000000000000000099999998377515902426605765018763349871733225882053375244140625"}, |
| 693 |
{1e-16f, chars_format::fixed, 77, |
| 694 |
"0.00000000000000010000000168623835263871646450439811815158464014530181884765625"}, |
| 695 |
{1e-15f, chars_format::fixed, 73, "0.0000000000000010000000036274937255387218471014421083964407444000244140625"}, |
| 696 |
{1e-14f, chars_format::fixed, 68, "0.00000000000000999999982451670044181213370393379591405391693115234375"}, |
| 697 |
{1e-13f, chars_format::fixed, 67, "0.0000000000000999999982451670044181213370393379591405391693115234375"}, |
| 698 |
{1e-12f, chars_format::fixed, 61, "0.0000000000009999999960041972002500187954865396022796630859375"}, |
| 699 |
{1e-11f, chars_format::fixed, 60, "0.000000000009999999960041972002500187954865396022796630859375"}, |
| 700 |
{1e-10f, chars_format::fixed, 57, "0.000000000100000001335143196001808973960578441619873046875"}, |
| 701 |
{1e-09f, chars_format::fixed, 53, "0.00000000099999997171806853657471947371959686279296875"}, |
| 702 |
{1e-08f, chars_format::fixed, 50, "0.00000000999999993922529029077850282192230224609375"}, |
| 703 |
{1e-07f, chars_format::fixed, 47, "0.00000010000000116860974230803549289703369140625"}, |
| 704 |
{1e-06f, chars_format::fixed, 43, "0.0000009999999974752427078783512115478515625"}, |
| 705 |
{1e-05f, chars_format::fixed, 38, "0.00000999999974737875163555145263671875"}, |
| 706 |
{1e-04f, chars_format::fixed, 37, "0.0000999999974737875163555145263671875"}, |
| 707 |
{1e-03f, chars_format::fixed, 33, "0.001000000047497451305389404296875"}, |
| 708 |
{1e-02f, chars_format::fixed, 29, "0.00999999977648258209228515625"}, |
| 709 |
{1e-01f, chars_format::fixed, 27, "0.100000001490116119384765625"}, |
| 710 |
{1e+00f, chars_format::fixed, 0, "1"}, |
| 711 |
{1e+01f, chars_format::fixed, 0, "10"}, |
| 712 |
{1e+02f, chars_format::fixed, 0, "100"}, |
| 713 |
{1e+03f, chars_format::fixed, 0, "1000"}, |
| 714 |
{1e+04f, chars_format::fixed, 0, "10000"}, |
| 715 |
{1e+05f, chars_format::fixed, 0, "100000"}, |
| 716 |
{1e+06f, chars_format::fixed, 0, "1000000"}, |
| 717 |
{1e+07f, chars_format::fixed, 0, "10000000"}, |
| 718 |
{1e+08f, chars_format::fixed, 0, "100000000"}, |
| 719 |
{1e+09f, chars_format::fixed, 0, "1000000000"}, |
| 720 |
{1e+10f, chars_format::fixed, 0, "10000000000"}, |
| 721 |
{1e+11f, chars_format::fixed, 0, "99999997952"}, |
| 722 |
{1e+12f, chars_format::fixed, 0, "999999995904"}, |
| 723 |
{1e+13f, chars_format::fixed, 0, "9999999827968"}, |
| 724 |
{1e+14f, chars_format::fixed, 0, "100000000376832"}, |
| 725 |
{1e+15f, chars_format::fixed, 0, "999999986991104"}, |
| 726 |
{1e+16f, chars_format::fixed, 0, "10000000272564224"}, |
| 727 |
{1e+17f, chars_format::fixed, 0, "99999998430674944"}, |
| 728 |
{1e+18f, chars_format::fixed, 0, "999999984306749440"}, |
| 729 |
{1e+19f, chars_format::fixed, 0, "9999999980506447872"}, |
| 730 |
{1e+20f, chars_format::fixed, 0, "100000002004087734272"}, |
| 731 |
{1e+21f, chars_format::fixed, 0, "1000000020040877342720"}, |
| 732 |
{1e+22f, chars_format::fixed, 0, "9999999778196308361216"}, |
| 733 |
{1e+23f, chars_format::fixed, 0, "99999997781963083612160"}, |
| 734 |
{1e+24f, chars_format::fixed, 0, "1000000013848427855085568"}, |
| 735 |
{1e+25f, chars_format::fixed, 0, "9999999562023526247432192"}, |
| 736 |
{1e+26f, chars_format::fixed, 0, "100000002537764290115403776"}, |
| 737 |
{1e+27f, chars_format::fixed, 0, "999999988484154753734934528"}, |
| 738 |
{1e+28f, chars_format::fixed, 0, "9999999442119689768320106496"}, |
| 739 |
{1e+29f, chars_format::fixed, 0, "100000001504746621987668885504"}, |
| 740 |
{1e+30f, chars_format::fixed, 0, "1000000015047466219876688855040"}, |
| 741 |
{1e+31f, chars_format::fixed, 0, "9999999848243207295109594873856"}, |
| 742 |
{1e+32f, chars_format::fixed, 0, "100000003318135351409612647563264"}, |
| 743 |
{1e+33f, chars_format::fixed, 0, "999999994495727286427992885035008"}, |
| 744 |
{1e+34f, chars_format::fixed, 0, "9999999790214767953607394487959552"}, |
| 745 |
{1e+35f, chars_format::fixed, 0, "100000004091847875962975319375216640"}, |
| 746 |
{1e+36f, chars_format::fixed, 0, "999999961690316245365415600208216064"}, |
| 747 |
{1e+37f, chars_format::fixed, 0, "9999999933815812510711506376257961984"}, |
| 748 |
{1e+38f, chars_format::fixed, 0, "99999996802856924650656260769173209088"}, |
| 749 |
|
| 750 |
// Ryu Printf RoundToEven |
| 751 |
{0.125f, chars_format::fixed, 3, "0.125"}, |
| 752 |
{0.125f, chars_format::fixed, 2, "0.12"}, |
| 753 |
{0.375f, chars_format::fixed, 3, "0.375"}, |
| 754 |
{0.375f, chars_format::fixed, 2, "0.38"}, |
| 755 |
|
| 756 |
// Ryu Printf RoundToEvenInteger |
| 757 |
{2.5f, chars_format::fixed, 1, "2.5"}, |
| 758 |
{2.5f, chars_format::fixed, 0, "2"}, |
| 759 |
{3.5f, chars_format::fixed, 1, "3.5"}, |
| 760 |
{3.5f, chars_format::fixed, 0, "4"}, |
| 761 |
|
| 762 |
// Ryu Printf NonRoundToEvenScenarios |
| 763 |
{0.748046875f, chars_format::fixed, 3, "0.748"}, |
| 764 |
{0.748046875f, chars_format::fixed, 2, "0.75"}, |
| 765 |
{0.748046875f, chars_format::fixed, 1, "0.7"}, // 0.75 would round to "0.8", but this is smaller |
| 766 |
|
| 767 |
{0.2509765625f, chars_format::fixed, 3, "0.251"}, |
| 768 |
{0.2509765625f, chars_format::fixed, 2, "0.25"}, |
| 769 |
{0.2509765625f, chars_format::fixed, 1, "0.3"}, // 0.25 would round to "0.2", but this is larger |
| 770 |
|
| 771 |
{0x1.000002p-2f, chars_format::fixed, 25, "0.2500000298023223876953125"}, |
| 772 |
{0x1.000002p-2f, chars_format::fixed, 3, "0.250"}, |
| 773 |
{0x1.000002p-2f, chars_format::fixed, 2, "0.25"}, |
| 774 |
{0x1.000002p-2f, chars_format::fixed, 1, "0.3"}, // 0.25 would round to "0.2", but this is larger (again) |
| 775 |
|
| 776 |
// More rounding tests. |
| 777 |
{9.5f, chars_format::fixed, 1, "9.5"}, |
| 778 |
{9.5f, chars_format::fixed, 0, "10"}, |
| 779 |
{10.5f, chars_format::fixed, 1, "10.5"}, |
| 780 |
{10.5f, chars_format::fixed, 0, "10"}, |
| 781 |
|
| 782 |
{1.241f, chars_format::fixed, 3, "1.241"}, |
| 783 |
{1.241f, chars_format::fixed, 1, "1.2"}, |
| 784 |
{1.251f, chars_format::fixed, 3, "1.251"}, |
| 785 |
{1.251f, chars_format::fixed, 1, "1.3"}, |
| 786 |
{1.261f, chars_format::fixed, 3, "1.261"}, |
| 787 |
{1.261f, chars_format::fixed, 1, "1.3"}, |
| 788 |
{1.341f, chars_format::fixed, 3, "1.341"}, |
| 789 |
{1.341f, chars_format::fixed, 1, "1.3"}, |
| 790 |
{1.351f, chars_format::fixed, 3, "1.351"}, |
| 791 |
{1.351f, chars_format::fixed, 1, "1.4"}, |
| 792 |
{1.361f, chars_format::fixed, 3, "1.361"}, |
| 793 |
{1.361f, chars_format::fixed, 1, "1.4"}, |
| 794 |
|
| 795 |
{2.41f, chars_format::fixed, 2, "2.41"}, |
| 796 |
{2.41f, chars_format::fixed, 0, "2"}, |
| 797 |
{2.51f, chars_format::fixed, 2, "2.51"}, |
| 798 |
{2.51f, chars_format::fixed, 0, "3"}, |
| 799 |
{2.61f, chars_format::fixed, 2, "2.61"}, |
| 800 |
{2.61f, chars_format::fixed, 0, "3"}, |
| 801 |
{3.41f, chars_format::fixed, 2, "3.41"}, |
| 802 |
{3.41f, chars_format::fixed, 0, "3"}, |
| 803 |
{3.51f, chars_format::fixed, 2, "3.51"}, |
| 804 |
{3.51f, chars_format::fixed, 0, "4"}, |
| 805 |
{3.61f, chars_format::fixed, 2, "3.61"}, |
| 806 |
{3.61f, chars_format::fixed, 0, "4"}, |
| 807 |
|
| 808 |
// Ryu Printf VaryingPrecision |
| 809 |
{1.142857f, chars_format::fixed, 28, "1.1428569555282592773437500000"}, |
| 810 |
{1.142857f, chars_format::fixed, 27, "1.142856955528259277343750000"}, |
| 811 |
{1.142857f, chars_format::fixed, 26, "1.14285695552825927734375000"}, |
| 812 |
{1.142857f, chars_format::fixed, 25, "1.1428569555282592773437500"}, |
| 813 |
{1.142857f, chars_format::fixed, 24, "1.142856955528259277343750"}, |
| 814 |
{1.142857f, chars_format::fixed, 23, "1.14285695552825927734375"}, |
| 815 |
{1.142857f, chars_format::fixed, 22, "1.1428569555282592773438"}, |
| 816 |
{1.142857f, chars_format::fixed, 21, "1.142856955528259277344"}, |
| 817 |
{1.142857f, chars_format::fixed, 20, "1.14285695552825927734"}, |
| 818 |
{1.142857f, chars_format::fixed, 19, "1.1428569555282592773"}, |
| 819 |
{1.142857f, chars_format::fixed, 18, "1.142856955528259277"}, |
| 820 |
{1.142857f, chars_format::fixed, 17, "1.14285695552825928"}, |
| 821 |
{1.142857f, chars_format::fixed, 16, "1.1428569555282593"}, |
| 822 |
{1.142857f, chars_format::fixed, 15, "1.142856955528259"}, |
| 823 |
{1.142857f, chars_format::fixed, 14, "1.14285695552826"}, |
| 824 |
{1.142857f, chars_format::fixed, 13, "1.1428569555283"}, |
| 825 |
{1.142857f, chars_format::fixed, 12, "1.142856955528"}, |
| 826 |
{1.142857f, chars_format::fixed, 11, "1.14285695553"}, |
| 827 |
{1.142857f, chars_format::fixed, 10, "1.1428569555"}, |
| 828 |
{1.142857f, chars_format::fixed, 9, "1.142856956"}, |
| 829 |
{1.142857f, chars_format::fixed, 8, "1.14285696"}, |
| 830 |
{1.142857f, chars_format::fixed, 7, "1.1428570"}, |
| 831 |
{1.142857f, chars_format::fixed, 6, "1.142857"}, |
| 832 |
{1.142857f, chars_format::fixed, 5, "1.14286"}, |
| 833 |
{1.142857f, chars_format::fixed, 4, "1.1429"}, |
| 834 |
{1.142857f, chars_format::fixed, 3, "1.143"}, |
| 835 |
{1.142857f, chars_format::fixed, 2, "1.14"}, |
| 836 |
{1.142857f, chars_format::fixed, 1, "1.1"}, |
| 837 |
{1.142857f, chars_format::fixed, 0, "1"}, |
| 838 |
|
| 839 |
// Negative precision requests 6 digits of precision. |
| 840 |
{1.142857f, chars_format::fixed, -1, "1.142857"}, |
| 841 |
{1.142857f, chars_format::fixed, -2, "1.142857"}, |
| 842 |
{1.142857f, chars_format::fixed, -3, "1.142857"}, |
| 843 |
|
| 844 |
// Ryu Printf Carrying |
| 845 |
{0.0009f, chars_format::fixed, 4, "0.0009"}, |
| 846 |
{0.0009f, chars_format::fixed, 3, "0.001"}, |
| 847 |
{0.0029f, chars_format::fixed, 4, "0.0029"}, |
| 848 |
{0.0029f, chars_format::fixed, 3, "0.003"}, |
| 849 |
{0.0099f, chars_format::fixed, 4, "0.0099"}, |
| 850 |
{0.0099f, chars_format::fixed, 3, "0.010"}, |
| 851 |
{0.0299f, chars_format::fixed, 4, "0.0299"}, |
| 852 |
{0.0299f, chars_format::fixed, 3, "0.030"}, |
| 853 |
{0.0999f, chars_format::fixed, 4, "0.0999"}, |
| 854 |
{0.0999f, chars_format::fixed, 3, "0.100"}, |
| 855 |
{0.2999f, chars_format::fixed, 4, "0.2999"}, |
| 856 |
{0.2999f, chars_format::fixed, 3, "0.300"}, |
| 857 |
{0.9999f, chars_format::fixed, 4, "0.9999"}, |
| 858 |
{0.9999f, chars_format::fixed, 3, "1.000"}, |
| 859 |
{2.9999f, chars_format::fixed, 4, "2.9999"}, |
| 860 |
{2.9999f, chars_format::fixed, 3, "3.000"}, |
| 861 |
{9.9999f, chars_format::fixed, 4, "9.9999"}, |
| 862 |
{9.9999f, chars_format::fixed, 3, "10.000"}, |
| 863 |
{29.9999f, chars_format::fixed, 4, "29.9999"}, |
| 864 |
{29.9999f, chars_format::fixed, 3, "30.000"}, |
| 865 |
{99.9999f, chars_format::fixed, 4, "99.9999"}, |
| 866 |
{99.9999f, chars_format::fixed, 3, "100.000"}, |
| 867 |
{299.9999f, chars_format::fixed, 4, "299.9999"}, |
| 868 |
{299.9999f, chars_format::fixed, 3, "300.000"}, |
| 869 |
|
| 870 |
{0.09f, chars_format::fixed, 2, "0.09"}, |
| 871 |
{0.09f, chars_format::fixed, 1, "0.1"}, |
| 872 |
{0.29f, chars_format::fixed, 2, "0.29"}, |
| 873 |
{0.29f, chars_format::fixed, 1, "0.3"}, |
| 874 |
{0.99f, chars_format::fixed, 2, "0.99"}, |
| 875 |
{0.99f, chars_format::fixed, 1, "1.0"}, |
| 876 |
{2.99f, chars_format::fixed, 2, "2.99"}, |
| 877 |
{2.99f, chars_format::fixed, 1, "3.0"}, |
| 878 |
{9.99f, chars_format::fixed, 2, "9.99"}, |
| 879 |
{9.99f, chars_format::fixed, 1, "10.0"}, |
| 880 |
{29.99f, chars_format::fixed, 2, "29.99"}, |
| 881 |
{29.99f, chars_format::fixed, 1, "30.0"}, |
| 882 |
{99.99f, chars_format::fixed, 2, "99.99"}, |
| 883 |
{99.99f, chars_format::fixed, 1, "100.0"}, |
| 884 |
{299.99f, chars_format::fixed, 2, "299.99"}, |
| 885 |
{299.99f, chars_format::fixed, 1, "300.0"}, |
| 886 |
|
| 887 |
{0.9f, chars_format::fixed, 1, "0.9"}, |
| 888 |
{0.9f, chars_format::fixed, 0, "1"}, |
| 889 |
{2.9f, chars_format::fixed, 1, "2.9"}, |
| 890 |
{2.9f, chars_format::fixed, 0, "3"}, |
| 891 |
{9.9f, chars_format::fixed, 1, "9.9"}, |
| 892 |
{9.9f, chars_format::fixed, 0, "10"}, |
| 893 |
{29.9f, chars_format::fixed, 1, "29.9"}, |
| 894 |
{29.9f, chars_format::fixed, 0, "30"}, |
| 895 |
{99.9f, chars_format::fixed, 1, "99.9"}, |
| 896 |
{99.9f, chars_format::fixed, 0, "100"}, |
| 897 |
{299.9f, chars_format::fixed, 1, "299.9"}, |
| 898 |
{299.9f, chars_format::fixed, 0, "300"}, |
| 899 |
|
| 900 |
// Ryu Printf RoundingResultZero |
| 901 |
{0.004f, chars_format::fixed, 3, "0.004"}, |
| 902 |
{0.004f, chars_format::fixed, 2, "0.00"}, |
| 903 |
{0.4f, chars_format::fixed, 1, "0.4"}, |
| 904 |
{0.4f, chars_format::fixed, 0, "0"}, |
| 905 |
{0.5f, chars_format::fixed, 1, "0.5"}, |
| 906 |
{0.5f, chars_format::fixed, 0, "0"}, |
| 907 |
|
| 908 |
// Ryu Printf AllBinaryExponents |
| 909 |
// These values test every binary exponent. |
| 910 |
// The mantissas were randomly generated. |
| 911 |
{0x0.bafab0p-126f, chars_format::fixed, 146, |
| 912 |
"0." |
| 913 |
"0000000000000000000000000000000000000085856660078164374052571520381239855817217629811131320365461649230225" |
| 914 |
"8101698697601023013703525066375732421875"}, |
| 915 |
{0x1.2c4906p-126f, chars_format::fixed, 149, |
| 916 |
"0." |
| 917 |
"0000000000000000000000000000000000000137884223604447257991705553959882023830165636017936204355992973751997" |
| 918 |
"2013648494879589634365402162075042724609375"}, |
| 919 |
{0x1.da6c8cp-125f, chars_format::fixed, 147, |
| 920 |
"0." |
| 921 |
"0000000000000000000000000000000000000435689644606144922962341034916717454461784748180572306511365470365953" |
| 922 |
"68653788540314053534530103206634521484375"}, |
| 923 |
{0x1.094fd8p-124f, chars_format::fixed, 145, |
| 924 |
"0." |
| 925 |
"0000000000000000000000000000000000000487300980449569406486898593097235018686258578182781609022211792895361" |
| 926 |
"293087574949822737835347652435302734375"}, |
| 927 |
{0x1.1fba2ap-123f, chars_format::fixed, 146, |
| 928 |
"0." |
| 929 |
"0000000000000000000000000000000000001056942819182250793988103906000418825212997860175004035399177620979400" |
| 930 |
"2661102041429330711252987384796142578125"}, |
| 931 |
{0x1.05c066p-122f, chars_format::fixed, 145, |
| 932 |
"0." |
| 933 |
"0000000000000000000000000000000000001923046724143804860574903666495417184272104431219282642086921032167044" |
| 934 |
"776084452450959361158311367034912109375"}, |
| 935 |
{0x1.aa97aep-121f, chars_format::fixed, 144, |
| 936 |
"0." |
| 937 |
"0000000000000000000000000000000000006268213405227838203431757007863521825324812101203856469220875149766722" |
| 938 |
"40063493291017948649823665618896484375"}, |
| 939 |
{0x1.dd39a8p-120f, chars_format::fixed, 141, |
| 940 |
"0." |
| 941 |
"0000000000000000000000000000000000014024388746462477508516570165943074639858849697711014853285027082288594" |
| 942 |
"08023936339304782450199127197265625"}, |
| 943 |
{0x1.d47ee4p-119f, chars_format::fixed, 141, |
| 944 |
"0." |
| 945 |
"0000000000000000000000000000000000027535700468003209195416842287342046227746219166975594715835834154840644" |
| 946 |
"49429979504202492535114288330078125"}, |
| 947 |
{0x1.3d3c36p-118f, chars_format::fixed, 141, |
| 948 |
"0." |
| 949 |
"0000000000000000000000000000000000037290818427663765497432907740725131368928567215367442737882934305701509" |
| 950 |
"99159295679419301450252532958984375"}, |
| 951 |
{0x1.1661f4p-117f, chars_format::fixed, 139, |
| 952 |
"0." |
| 953 |
"0000000000000000000000000000000000065447441644065192772010189083715139205202243608571574700187600294454259" |
| 954 |
"852727773250080645084381103515625"}, |
| 955 |
{0x1.b68df4p-116f, chars_format::fixed, 138, |
| 956 |
"0." |
| 957 |
"0000000000000000000000000000000000206207336977375818320192367186588031181149116107584831794039036470533865" |
| 958 |
"49714559805579483509063720703125"}, |
| 959 |
{0x1.d99cbcp-115f, chars_format::fixed, 137, |
| 960 |
"0." |
| 961 |
"0000000000000000000000000000000000445382813514879099167344241437088992337862296399353856123689687079858501" |
| 962 |
"3062620419077575206756591796875"}, |
| 963 |
{0x1.fd046ep-114f, chars_format::fixed, 137, |
| 964 |
"0." |
| 965 |
"0000000000000000000000000000000000957355143513621934625335631305232671680527244248210039119495722709229923" |
| 966 |
"4527672524563968181610107421875"}, |
| 967 |
{0x1.89834cp-113f, chars_format::fixed, 135, |
| 968 |
"0." |
| 969 |
"0000000000000000000000000000000001480230929779647770398330978023641189899501899250006144284413575618053471" |
| 970 |
"31667076610028743743896484375"}, |
| 971 |
{0x1.44f9f6p-112f, chars_format::fixed, 135, |
| 972 |
"0." |
| 973 |
"0000000000000000000000000000000002444850777614032698558632186222413041911856813461843446368257012912827974" |
| 974 |
"56005937419831752777099609375"}, |
| 975 |
{0x1.610156p-111f, chars_format::fixed, 134, |
| 976 |
"0." |
| 977 |
"0000000000000000000000000000000005311432194104638958491823018983379637847618995394862767718806989547530861" |
| 978 |
"2731168977916240692138671875"}, |
| 979 |
{0x1.1c4ce0p-110f, chars_format::fixed, 129, |
| 980 |
"0." |
| 981 |
"0000000000000000000000000000000008555350741040305433153411782350510989661057055423470539198826934068620175" |
| 982 |
"82170665264129638671875"}, |
| 983 |
{0x1.c8846ap-109f, chars_format::fixed, 132, |
| 984 |
"0." |
| 985 |
"0000000000000000000000000000000027475632104005746766942313987412370292282555616009485081234833825369889837" |
| 986 |
"02030964195728302001953125"}, |
| 987 |
{0x1.49aaa6p-108f, chars_format::fixed, 131, |
| 988 |
"0." |
| 989 |
"0000000000000000000000000000000039682172991165697309827799919973022713504068615668209476284727932338114442" |
| 990 |
"2455690801143646240234375"}, |
| 991 |
{0x1.f5603cp-107f, chars_format::fixed, 129, |
| 992 |
"0." |
| 993 |
"0000000000000000000000000000000120701861138584576157150361758540470962569680234040676814963322094342856871" |
| 994 |
"66266143321990966796875"}, |
| 995 |
{0x1.b7bbf8p-106f, chars_format::fixed, 127, |
| 996 |
"0." |
| 997 |
"0000000000000000000000000000000211724341322508937840915176712265363597160619557838059749677039889093066449" |
| 998 |
"277102947235107421875"}, |
| 999 |
{0x1.6d305cp-105f, chars_format::fixed, 127, |
| 1000 |
"0." |
| 1001 |
"0000000000000000000000000000000351664122601460292174574136500884378151845989294218826175242309517443572985" |
| 1002 |
"939681529998779296875"}, |
| 1003 |
{0x1.dd9944p-104f, chars_format::fixed, 126, |
| 1004 |
"0." |
| 1005 |
"0000000000000000000000000000000919821625881433083724268012282371631728046815243377909779298740033937065163" |
| 1006 |
"62726688385009765625"}, |
| 1007 |
{0x1.0f4254p-103f, chars_format::fixed, 125, |
| 1008 |
"0." |
| 1009 |
"0000000000000000000000000000001044852024561729954450605502201132293228119140390439904125807757395705266389" |
| 1010 |
"9958133697509765625"}, |
| 1011 |
{0x1.049450p-102f, chars_format::fixed, 122, |
| 1012 |
"0." |
| 1013 |
"0000000000000000000000000000002007430259113927348388472759172849833669167623529955984951200775867619086056" |
| 1014 |
"9477081298828125"}, |
| 1015 |
{0x1.28d030p-101f, chars_format::fixed, 121, |
| 1016 |
"0." |
| 1017 |
"0000000000000000000000000000004573131937693259427041496124538667251427229422876784281637441154089174233376" |
| 1018 |
"979827880859375"}, |
| 1019 |
{0x1.28a2bep-100f, chars_format::fixed, 123, |
| 1020 |
"0." |
| 1021 |
"0000000000000000000000000000009140793594875532256935908936727717060368161903718573976784789181238011224195" |
| 1022 |
"36113739013671875"}, |
| 1023 |
{0x1.e674d2p-99f, chars_format::fixed, 122, |
| 1024 |
"0." |
| 1025 |
"0000000000000000000000000000029980185962354845050897219390986524441297232842758378051906120731473492924124" |
| 1026 |
"0024566650390625"}, |
| 1027 |
{0x1.227314p-98f, chars_format::fixed, 120, |
| 1028 |
"0." |
| 1029 |
"0000000000000000000000000000035800667869547456776694564979794758804336827210561614021067100566142471507191" |
| 1030 |
"65802001953125"}, |
| 1031 |
{0x1.735b6cp-97f, chars_format::fixed, 119, |
| 1032 |
"0." |
| 1033 |
"0000000000000000000000000000091546597262378319603799081529207906703837108826262575211885064163652714341878" |
| 1034 |
"8909912109375"}, |
| 1035 |
{0x1.ef60b4p-96f, chars_format::fixed, 118, |
| 1036 |
"0." |
| 1037 |
"0000000000000000000000000000244240085996903849216356078751341022854748745722804070812372856380534358322620" |
| 1038 |
"391845703125"}, |
| 1039 |
{0x1.f58d34p-95f, chars_format::fixed, 117, |
| 1040 |
"0." |
| 1041 |
"0000000000000000000000000000494568036548015750964222103779193000963396430755616983709899159293854609131813" |
| 1042 |
"04931640625"}, |
| 1043 |
{0x1.a9fa8ap-94f, chars_format::fixed, 117, |
| 1044 |
"0." |
| 1045 |
"0000000000000000000000000000840094794528154864080325730507983995095850536733231295194457288744160905480384" |
| 1046 |
"82666015625"}, |
| 1047 |
{0x1.2ebd9ap-93f, chars_format::fixed, 116, |
| 1048 |
"0." |
| 1049 |
"0000000000000000000000000001194101241497498690354073604120044306874891791320908440710013564967084676027297" |
| 1050 |
"9736328125"}, |
| 1051 |
{0x1.1c25bep-92f, chars_format::fixed, 115, |
| 1052 |
"0." |
| 1053 |
"0000000000000000000000000002241527991772840369420073304083191365256388471842441401093992681126110255718231" |
| 1054 |
"201171875"}, |
| 1055 |
{0x1.80d526p-91f, chars_format::fixed, 114, |
| 1056 |
"0." |
| 1057 |
"0000000000000000000000000006071588038765549904506806942923684386898144178454361785668425000039860606193542" |
| 1058 |
"48046875"}, |
| 1059 |
{0x1.16cdd0p-90f, chars_format::fixed, 110, |
| 1060 |
"0." |
| 1061 |
"0000000000000000000000000008797501615285119946834874987404311536605839433322628906353202182799577713012695" |
| 1062 |
"3125"}, |
| 1063 |
{0x1.be00c0p-89f, chars_format::fixed, 107, |
| 1064 |
"0." |
| 1065 |
"0000000000000000000000000028146741987560362391732368583172300827762585262448169487470295280218124389648437" |
| 1066 |
"5"}, |
| 1067 |
{0x1.dbe376p-88f, chars_format::fixed, 111, |
| 1068 |
"0." |
| 1069 |
"0000000000000000000000000060065575697458565955014820557088473772922162727261330417150020366534590721130371" |
| 1070 |
"09375"}, |
| 1071 |
{0x1.75b358p-87f, chars_format::fixed, 108, |
| 1072 |
"0." |
| 1073 |
"0000000000000000000000000094335284238393382638914933670753282739891362740358715655020205304026603698730468" |
| 1074 |
"75"}, |
| 1075 |
{0x1.5e56fap-86f, chars_format::fixed, 109, |
| 1076 |
"0." |
| 1077 |
"0000000000000000000000000176876373794073549186243776242822499413496518949617808402763330377638339996337890" |
| 1078 |
"625"}, |
| 1079 |
{0x1.1542e6p-85f, chars_format::fixed, 108, |
| 1080 |
"0." |
| 1081 |
"0000000000000000000000000279962390364982552136537973532622361314990341862873890477203531190752983093261718" |
| 1082 |
"75"}, |
| 1083 |
{0x1.37b7a6p-84f, chars_format::fixed, 107, |
| 1084 |
"0." |
| 1085 |
"0000000000000000000000000629508229027247503098930994487426088983880040350626927647681441158056259155273437" |
| 1086 |
"5"}, |
| 1087 |
{0x1.31f62ap-83f, chars_format::fixed, 106, |
| 1088 |
"0." |
| 1089 |
"000000000000000000000000123576897369666466985856753932114511864998745993560191891447175294160842895507812" |
| 1090 |
"5"}, |
| 1091 |
{0x1.ac3560p-82f, chars_format::fixed, 101, |
| 1092 |
"0.00000000000000000000000034590406845628797200186450581230516131137076030199750675819814205169677734375"}, |
| 1093 |
{0x1.a7db5cp-81f, chars_format::fixed, 103, |
| 1094 |
"0." |
| 1095 |
"0000000000000000000000006847777099176331341674240101847394713956151957034990118700079619884490966796875"}, |
| 1096 |
{0x1.40189cp-80f, chars_format::fixed, 102, |
| 1097 |
"0.000000000000000000000001034286379672715366987641733210033664035198963659922810620628297328948974609375"}, |
| 1098 |
{0x1.aad1eep-79f, chars_format::fixed, 102, |
| 1099 |
"0.000000000000000000000002758259846499093682487211692864773559218105614121441249153576791286468505859375"}, |
| 1100 |
{0x1.49824cp-78f, chars_format::fixed, 100, |
| 1101 |
"0.0000000000000000000000042588036474940459085811637121780459484809977510622047702781856060028076171875"}, |
| 1102 |
{0x1.955292p-77f, chars_format::fixed, 100, |
| 1103 |
"0.0000000000000000000000104773420985315373838626628182169411331037256474019159213639795780181884765625"}, |
| 1104 |
{0x1.d8ca0cp-76f, chars_format::fixed, 98, |
| 1105 |
"0.00000000000000000000002444263111177596802332967266437459101513507420122550684027373790740966796875"}, |
| 1106 |
{0x1.28b5aap-75f, chars_format::fixed, 98, |
| 1107 |
"0.00000000000000000000003067905619497844072028707730390270809472941238027487997896969318389892578125"}, |
| 1108 |
{0x1.e5fda8p-74f, chars_format::fixed, 95, |
| 1109 |
"0.00000000000000000000010050055115902033206854316793794380802129495577901252545416355133056640625"}, |
| 1110 |
{0x1.fd929cp-73f, chars_format::fixed, 95, |
| 1111 |
"0.00000000000000000000021075432611470358337541921610390309449467594049565377645194530487060546875"}, |
| 1112 |
{0x1.c0b84cp-72f, chars_format::fixed, 94, |
| 1113 |
"0.0000000000000000000003711724097438896357340602997067040280665395357573288492858409881591796875"}, |
| 1114 |
{0x1.5cfeaep-71f, chars_format::fixed, 94, |
| 1115 |
"0.0000000000000000000005773635352424624465965559338086719731730767080080113373696804046630859375"}, |
| 1116 |
{0x1.bcce4ap-70f, chars_format::fixed, 93, |
| 1117 |
"0.000000000000000000001471738991536079335112024613790339400143380998997599817812442779541015625"}, |
| 1118 |
{0x1.edf106p-69f, chars_format::fixed, 92, |
| 1119 |
"0.00000000000000000000326863064574260634910627773444362353938430487687583081424236297607421875"}, |
| 1120 |
{0x1.30b422p-68f, chars_format::fixed, 91, |
| 1121 |
"0.0000000000000000000040327191475944672156035895296995186232180685692583210766315460205078125"}, |
| 1122 |
{0x1.7aa8d8p-67f, chars_format::fixed, 88, |
| 1123 |
"0.0000000000000000000100230347240102665385544432156972316505516573670320212841033935546875"}, |
| 1124 |
{0x1.4ad4e0p-66f, chars_format::fixed, 85, |
| 1125 |
"0.0000000000000000000175140760553442509348562143578487138029231573455035686492919921875"}, |
| 1126 |
{0x1.dde636p-65f, chars_format::fixed, 88, |
| 1127 |
"0.0000000000000000000505995524921864861016965251964971894693690046551637351512908935546875"}, |
| 1128 |
{0x1.5df870p-64f, chars_format::fixed, 84, |
| 1129 |
"0.000000000000000000074109127331368847396687003781234892585416673682630062103271484375"}, |
| 1130 |
{0x1.c346fap-63f, chars_format::fixed, 86, |
| 1131 |
"0.00000000000000000019112335047873604296656620434025075638828639057464897632598876953125"}, |
| 1132 |
{0x1.58d2eap-62f, chars_format::fixed, 85, |
| 1133 |
"0.0000000000000000002920771899491385068938311721231659845443573431111872196197509765625"}, |
| 1134 |
{0x1.0d4824p-61f, chars_format::fixed, 83, |
| 1135 |
"0.00000000000000000045618111223383324851561766710705825289551285095512866973876953125"}, |
| 1136 |
{0x1.04585cp-60f, chars_format::fixed, 82, |
| 1137 |
"0.0000000000000000008820836917354691955064048547452415505176759324967861175537109375"}, |
| 1138 |
{0x1.55cf7ap-59f, chars_format::fixed, 82, |
| 1139 |
"0.0000000000000000023161977389916240139687737820128887733517331071197986602783203125"}, |
| 1140 |
{0x1.1fd8ecp-58f, chars_format::fixed, 80, |
| 1141 |
"0.00000000000000000390105904223582084021197668999292318403604440391063690185546875"}, |
| 1142 |
{0x1.0bc866p-57f, chars_format::fixed, 80, |
| 1143 |
"0.00000000000000000725826751123333980988787395016714754092390649020671844482421875"}, |
| 1144 |
{0x1.4dfa86p-56f, chars_format::fixed, 79, |
| 1145 |
"0.0000000000000000181050165732891247031242920595417444928898476064205169677734375"}, |
| 1146 |
{0x1.335daep-55f, chars_format::fixed, 78, |
| 1147 |
"0.000000000000000033324681586205479543426333233213654239079914987087249755859375"}, |
| 1148 |
{0x1.5bc756p-54f, chars_format::fixed, 77, |
| 1149 |
"0.00000000000000007541247487712833172911197632259927559061907231807708740234375"}, |
| 1150 |
{0x1.9eb052p-53f, chars_format::fixed, 76, |
| 1151 |
"0.0000000000000001798425779915148827771409489884035792783834040164947509765625"}, |
| 1152 |
{0x1.13b6d2p-52f, chars_format::fixed, 75, |
| 1153 |
"0.000000000000000239143897259270284301468922905087310937233269214630126953125"}, |
| 1154 |
{0x1.260438p-51f, chars_format::fixed, 72, |
| 1155 |
"0.000000000000000510037289299151118393549353413618518970906734466552734375"}, |
| 1156 |
{0x1.9e6b44p-50f, chars_format::fixed, 72, |
| 1157 |
"0.000000000000001437804758404521467129999479084290214814245700836181640625"}, |
| 1158 |
{0x1.89c0bcp-49f, chars_format::fixed, 71, |
| 1159 |
"0.00000000000000273220937993773164975674916377101908437907695770263671875"}, |
| 1160 |
{0x1.e30610p-48f, chars_format::fixed, 68, |
| 1161 |
"0.00000000000000670330015995791728133923470522859133780002593994140625"}, |
| 1162 |
{0x1.48b6e8p-47f, chars_format::fixed, 68, |
| 1163 |
"0.00000000000000912365953728740131101204724473063834011554718017578125"}, |
| 1164 |
{0x1.41382ep-46f, chars_format::fixed, 69, |
| 1165 |
"0.000000000000017831261573081173821275768887062440626323223114013671875"}, |
| 1166 |
{0x1.383b8ep-45f, chars_format::fixed, 68, |
| 1167 |
"0.00000000000003466478609693256218715617933412431739270687103271484375"}, |
| 1168 |
{0x1.1e6564p-44f, chars_format::fixed, 66, "0.000000000000063592699357274684590635160930105485022068023681640625"}, |
| 1169 |
{0x1.c35e62p-43f, chars_format::fixed, 66, "0.000000000000200447961722950707130763703389675356447696685791015625"}, |
| 1170 |
{0x1.2a2f4ep-42f, chars_format::fixed, 65, "0.00000000000026484129017449731247069166784058324992656707763671875"}, |
| 1171 |
{0x1.69fae2p-41f, chars_format::fixed, 64, "0.0000000000006430056682417417679431537180789746344089508056640625"}, |
| 1172 |
{0x1.4ccefep-40f, chars_format::fixed, 63, "0.000000000001182373535017766652543969030375592410564422607421875"}, |
| 1173 |
{0x1.aa9bf6p-39f, chars_format::fixed, 62, "0.00000000000303124083993189241681420753593556582927703857421875"}, |
| 1174 |
{0x1.3b9744p-38f, chars_format::fixed, 60, "0.000000000004484816164274096905728583806194365024566650390625"}, |
| 1175 |
{0x1.b2fc6ap-37f, chars_format::fixed, 60, "0.000000000012363045483188006556929394719190895557403564453125"}, |
| 1176 |
{0x1.7bc418p-36f, chars_format::fixed, 57, "0.000000000021587197307493255493682227097451686859130859375"}, |
| 1177 |
{0x1.f4a74cp-35f, chars_format::fixed, 57, "0.000000000056917713597837149563929415307939052581787109375"}, |
| 1178 |
{0x1.89f248p-34f, chars_format::fixed, 55, "0.0000000000895730434269381703416001982986927032470703125"}, |
| 1179 |
{0x1.60ac54p-33f, chars_format::fixed, 55, "0.0000000001603771837555001411601551808416843414306640625"}, |
| 1180 |
{0x1.2f6d0ep-32f, chars_format::fixed, 55, "0.0000000002759643347172158200919511727988719940185546875"}, |
| 1181 |
{0x1.748684p-31f, chars_format::fixed, 53, "0.00000000067761984912095840627443976700305938720703125"}, |
| 1182 |
{0x1.b4fa00p-30f, chars_format::fixed, 45, "0.000000001589711473570787347853183746337890625"}, |
| 1183 |
{0x1.c204d8p-29f, chars_format::fixed, 50, "0.00000000327431859403759517590515315532684326171875"}, |
| 1184 |
{0x1.50029ep-28f, chars_format::fixed, 51, "0.000000004889592286616561978007666766643524169921875"}, |
| 1185 |
{0x1.56cf38p-27f, chars_format::fixed, 48, "0.000000009977068060607052757404744625091552734375"}, |
| 1186 |
{0x1.0b5a5cp-26f, chars_format::fixed, 48, "0.000000015561990807100301026366651058197021484375"}, |
| 1187 |
{0x1.fc8250p-25f, chars_format::fixed, 45, "0.000000059198242752245278097689151763916015625"}, |
| 1188 |
{0x1.c66674p-24f, chars_format::fixed, 46, "0.0000001057982927932243910618126392364501953125"}, |
| 1189 |
{0x1.4da57ep-23f, chars_format::fixed, 46, "0.0000001553662372089092968963086605072021484375"}, |
| 1190 |
{0x1.4fcdacp-22f, chars_format::fixed, 44, "0.00000031274129241865011863410472869873046875"}, |
| 1191 |
{0x1.5eaff4p-21f, chars_format::fixed, 43, "0.0000006532060297104180790483951568603515625"}, |
| 1192 |
{0x1.d2f696p-20f, chars_format::fixed, 43, "0.0000017395735767422593198716640472412109375"}, |
| 1193 |
{0x1.e4400cp-19f, chars_format::fixed, 41, "0.00000360794501830241642892360687255859375"}, |
| 1194 |
{0x1.03e624p-18f, chars_format::fixed, 40, "0.0000038727966966689564287662506103515625"}, |
| 1195 |
{0x1.bdb65ep-17f, chars_format::fixed, 40, "0.0000132832637973478995263576507568359375"}, |
| 1196 |
{0x1.57fb84p-16f, chars_format::fixed, 38, "0.00002050295370281673967838287353515625"}, |
| 1197 |
{0x1.fd2d62p-15f, chars_format::fixed, 38, "0.00006069866140023805201053619384765625"}, |
| 1198 |
{0x1.ca0c58p-14f, chars_format::fixed, 35, "0.00010920720524154603481292724609375"}, |
| 1199 |
{0x1.988f70p-13f, chars_format::fixed, 33, "0.000194816733710467815399169921875"}, |
| 1200 |
{0x1.032dd6p-12f, chars_format::fixed, 35, "0.00024717240012250840663909912109375"}, |
| 1201 |
{0x1.571b08p-11f, chars_format::fixed, 32, "0.00065442197956144809722900390625"}, |
| 1202 |
{0x1.53bedap-10f, chars_format::fixed, 33, "0.001296026282943785190582275390625"}, |
| 1203 |
{0x1.ab2f36p-9f, chars_format::fixed, 32, "0.00325915846042335033416748046875"}, |
| 1204 |
{0x1.7293dap-8f, chars_format::fixed, 31, "0.0056545645929872989654541015625"}, |
| 1205 |
{0x1.825eb6p-7f, chars_format::fixed, 30, "0.011791075579822063446044921875"}, |
| 1206 |
{0x1.f45aa0p-6f, chars_format::fixed, 25, "0.0305391848087310791015625"}, |
| 1207 |
{0x1.854d96p-5f, chars_format::fixed, 28, "0.0475223474204540252685546875"}, |
| 1208 |
{0x1.5650cep-4f, chars_format::fixed, 27, "0.083573155105113983154296875"}, |
| 1209 |
{0x1.03acdap-3f, chars_format::fixed, 26, "0.12679453194141387939453125"}, |
| 1210 |
{0x1.6b9416p-2f, chars_format::fixed, 25, "0.3550570905208587646484375"}, |
| 1211 |
{0x1.a8544ap-1f, chars_format::fixed, 24, "0.828768074512481689453125"}, |
| 1212 |
{0x1.0693f6p+0f, chars_format::fixed, 23, "1.02569520473480224609375"}, |
| 1213 |
{0x1.b9476ep+1f, chars_format::fixed, 22, "3.4474923610687255859375"}, |
| 1214 |
{0x1.3cb752p+2f, chars_format::fixed, 21, "4.948688983917236328125"}, |
| 1215 |
{0x1.bb8a64p+3f, chars_format::fixed, 19, "13.8606433868408203125"}, |
| 1216 |
{0x1.1de906p+4f, chars_format::fixed, 19, "17.8693904876708984375"}, |
| 1217 |
{0x1.d8e834p+5f, chars_format::fixed, 17, "59.11338043212890625"}, |
| 1218 |
{0x1.27cd38p+6f, chars_format::fixed, 15, "73.950408935546875"}, |
| 1219 |
{0x1.3cdcd6p+7f, chars_format::fixed, 16, "158.4313201904296875"}, |
| 1220 |
{0x1.392656p+8f, chars_format::fixed, 15, "313.149749755859375"}, |
| 1221 |
{0x1.c96aa8p+9f, chars_format::fixed, 12, "914.833251953125"}, |
| 1222 |
{0x1.28b6b2p+10f, chars_format::fixed, 13, "1186.8546142578125"}, |
| 1223 |
{0x1.786090p+11f, chars_format::fixed, 9, "3011.017578125"}, |
| 1224 |
{0x1.79c6f6p+12f, chars_format::fixed, 11, "6044.43505859375"}, |
| 1225 |
{0x1.ef1840p+13f, chars_format::fixed, 5, "15843.03125"}, |
| 1226 |
{0x1.539fd0p+14f, chars_format::fixed, 6, "21735.953125"}, |
| 1227 |
{0x1.b31804p+15f, chars_format::fixed, 7, "55692.0078125"}, |
| 1228 |
{0x1.ad4a9cp+16f, chars_format::fixed, 6, "109898.609375"}, |
| 1229 |
{0x1.4c43a6p+17f, chars_format::fixed, 6, "170119.296875"}, |
| 1230 |
{0x1.5598c6p+18f, chars_format::fixed, 5, "349795.09375"}, |
| 1231 |
{0x1.73695ep+19f, chars_format::fixed, 4, "760650.9375"}, |
| 1232 |
{0x1.234f2ap+20f, chars_format::fixed, 3, "1193202.625"}, |
| 1233 |
{0x1.0a4cc8p+21f, chars_format::fixed, 0, "2181529"}, |
| 1234 |
{0x1.90abd2p+22f, chars_format::fixed, 1, "6564596.5"}, |
| 1235 |
{0x1.62dde8p+23f, chars_format::fixed, 0, "11628276"}, |
| 1236 |
{0x1.9e3a8cp+24f, chars_format::fixed, 0, "27146892"}, |
| 1237 |
{0x1.53a3eap+25f, chars_format::fixed, 0, "44517332"}, |
| 1238 |
{0x1.41a1cep+26f, chars_format::fixed, 0, "84313912"}, |
| 1239 |
{0x1.8fdda4p+27f, chars_format::fixed, 0, "209644832"}, |
| 1240 |
{0x1.d0322ap+28f, chars_format::fixed, 0, "486744736"}, |
| 1241 |
{0x1.cdb764p+29f, chars_format::fixed, 0, "968289408"}, |
| 1242 |
{0x1.7620d8p+30f, chars_format::fixed, 0, "1569207808"}, |
| 1243 |
{0x1.c18df6p+31f, chars_format::fixed, 0, "3771136768"}, |
| 1244 |
{0x1.240cf8p+32f, chars_format::fixed, 0, "4899796992"}, |
| 1245 |
{0x1.81669ap+33f, chars_format::fixed, 0, "12931904512"}, |
| 1246 |
{0x1.3be30cp+34f, chars_format::fixed, 0, "21198811136"}, |
| 1247 |
{0x1.d1e6e4p+35f, chars_format::fixed, 0, "62532296704"}, |
| 1248 |
{0x1.06b274p+36f, chars_format::fixed, 0, "70517211136"}, |
| 1249 |
{0x1.a74284p+37f, chars_format::fixed, 0, "227235889152"}, |
| 1250 |
{0x1.9fd3e6p+38f, chars_format::fixed, 0, "446491623424"}, |
| 1251 |
{0x1.e2cec4p+39f, chars_format::fixed, 0, "1036821594112"}, |
| 1252 |
{0x1.3d5d32p+40f, chars_format::fixed, 0, "1363068190720"}, |
| 1253 |
{0x1.accccap+41f, chars_format::fixed, 0, "3683363586048"}, |
| 1254 |
{0x1.a120ccp+42f, chars_format::fixed, 0, "7166206410752"}, |
| 1255 |
{0x1.55a028p+43f, chars_format::fixed, 0, "11738166591488"}, |
| 1256 |
{0x1.035296p+44f, chars_format::fixed, 0, "17820513468416"}, |
| 1257 |
{0x1.22d1aap+45f, chars_format::fixed, 0, "39969859043328"}, |
| 1258 |
{0x1.eb8eaep+46f, chars_format::fixed, 0, "135118253457408"}, |
| 1259 |
{0x1.490d0ep+47f, chars_format::fixed, 0, "180897697497088"}, |
| 1260 |
{0x1.9da088p+48f, chars_format::fixed, 0, "454787778740224"}, |
| 1261 |
{0x1.e7fab4p+49f, chars_format::fixed, 0, "1073077848899584"}, |
| 1262 |
{0x1.98a534p+50f, chars_format::fixed, 0, "1797241144606720"}, |
| 1263 |
{0x1.93aeeap+51f, chars_format::fixed, 0, "3550835489374208"}, |
| 1264 |
{0x1.3df680p+52f, chars_format::fixed, 0, "5593662327095296"}, |
| 1265 |
{0x1.c763f6p+53f, chars_format::fixed, 0, "16022627827056640"}, |
| 1266 |
{0x1.8b669ep+54f, chars_format::fixed, 0, "27823861147893760"}, |
| 1267 |
{0x1.73e5b6p+55f, chars_format::fixed, 0, "52339893103230976"}, |
| 1268 |
{0x1.a13d18p+56f, chars_format::fixed, 0, "117442238576852992"}, |
| 1269 |
{0x1.a0797ep+57f, chars_format::fixed, 0, "234454344768946176"}, |
| 1270 |
{0x1.c07a80p+58f, chars_format::fixed, 0, "504941918963105792"}, |
| 1271 |
{0x1.729388p+59f, chars_format::fixed, 0, "834463629662224384"}, |
| 1272 |
{0x1.edfb70p+60f, chars_format::fixed, 0, "2224697951572197376"}, |
| 1273 |
{0x1.3d6782p+61f, chars_format::fixed, 0, "2858924021141995520"}, |
| 1274 |
{0x1.b121e8p+62f, chars_format::fixed, 0, "7802620494837972992"}, |
| 1275 |
{0x1.0efc5ap+63f, chars_format::fixed, 0, "9763290520209063936"}, |
| 1276 |
{0x1.b7dba0p+64f, chars_format::fixed, 0, "31695102724410441728"}, |
| 1277 |
{0x1.ec2306p+65f, chars_format::fixed, 0, "70924388975830368256"}, |
| 1278 |
{0x1.2e2d28p+66f, chars_format::fixed, 0, "87096415015485308928"}, |
| 1279 |
{0x1.e02208p+67f, chars_format::fixed, 0, "276777792668052750336"}, |
| 1280 |
{0x1.402636p+68f, chars_format::fixed, 0, "369106968238077509632"}, |
| 1281 |
{0x1.11f97cp+69f, chars_format::fixed, 0, "631742296991907971072"}, |
| 1282 |
{0x1.74db2ap+70f, chars_format::fixed, 0, "1719495307615820316672"}, |
| 1283 |
{0x1.94a32ap+71f, chars_format::fixed, 0, "3732120907777931476992"}, |
| 1284 |
{0x1.c272dcp+72f, chars_format::fixed, 0, "8309311323384498356224"}, |
| 1285 |
{0x1.36ca40p+73f, chars_format::fixed, 0, "11466128622488263852032"}, |
| 1286 |
{0x1.5f6fbep+74f, chars_format::fixed, 0, "25931436172223350571008"}, |
| 1287 |
{0x1.95ec4ep+75f, chars_format::fixed, 0, "59903671176748022628352"}, |
| 1288 |
{0x1.6b3912p+76f, chars_format::fixed, 0, "107204487170660958732288"}, |
| 1289 |
{0x1.10992ap+77f, chars_format::fixed, 0, "160913632700346331561984"}, |
| 1290 |
{0x1.74a25ep+78f, chars_format::fixed, 0, "439928869395322133020672"}, |
| 1291 |
{0x1.43f462p+79f, chars_format::fixed, 0, "764916220582548125777920"}, |
| 1292 |
{0x1.f12ca2p+80f, chars_format::fixed, 0, "2347839472055691035803648"}, |
| 1293 |
{0x1.2b7f18p+81f, chars_format::fixed, 0, "2828664088515283884441600"}, |
| 1294 |
{0x1.a40704p+82f, chars_format::fixed, 0, "7934093352976572433301504"}, |
| 1295 |
{0x1.35d5f8p+83f, chars_format::fixed, 0, "11705266159821935293235200"}, |
| 1296 |
{0x1.c2c9d2p+84f, chars_format::fixed, 0, "34060605519118462894473216"}, |
| 1297 |
{0x1.47bf20p+85f, chars_format::fixed, 0, "49527663163502775133798400"}, |
| 1298 |
{0x1.60b728p+86f, chars_format::fixed, 0, "106601704860119390738186240"}, |
| 1299 |
{0x1.3354c8p+87f, chars_format::fixed, 0, "185770297377533474371534848"}, |
| 1300 |
{0x1.e9e512p+88f, chars_format::fixed, 0, "592246479757524141957185536"}, |
| 1301 |
{0x1.c4b6cap+89f, chars_format::fixed, 0, "1094595334815995103451021312"}, |
| 1302 |
{0x1.799cb8p+90f, chars_format::fixed, 0, "1826020469467809704300249088"}, |
| 1303 |
{0x1.1afa36p+91f, chars_format::fixed, 0, "2736789351009782551090823168"}, |
| 1304 |
{0x1.80c214p+92f, chars_format::fixed, 0, "7442304364233212615194574848"}, |
| 1305 |
{0x1.657890p+93f, chars_format::fixed, 0, "13828987453168434783077793792"}, |
| 1306 |
{0x1.5ce17cp+94f, chars_format::fixed, 0, "26993344325171312829134798848"}, |
| 1307 |
{0x1.3f1e9ap+95f, chars_format::fixed, 0, "49381356576017938861904625664"}, |
| 1308 |
{0x1.874612p+96f, chars_format::fixed, 0, "121093348650115637567232671744"}, |
| 1309 |
{0x1.5f4d5ep+97f, chars_format::fixed, 0, "217445539275703670631001227264"}, |
| 1310 |
{0x1.45b1bep+98f, chars_format::fixed, 0, "403190021246562727728269754368"}, |
| 1311 |
{0x1.a570f4p+99f, chars_format::fixed, 0, "1043437928672039460753056464896"}, |
| 1312 |
{0x1.f5106ep+100f, chars_format::fixed, 0, "2481149635102733266542145830912"}, |
| 1313 |
{0x1.d84424p+101f, chars_format::fixed, 0, "4677097651091265616934539886592"}, |
| 1314 |
{0x1.3d6c56p+102f, chars_format::fixed, 0, "6287213966425746785671183335424"}, |
| 1315 |
{0x1.9d8cf0p+103f, chars_format::fixed, 0, "16382424580981433623378525159424"}, |
| 1316 |
{0x1.e2e73ep+104f, chars_format::fixed, 0, "38259540322544957537972440268800"}, |
| 1317 |
{0x1.2d6594p+105f, chars_format::fixed, 0, "47758227647613648865431576903680"}, |
| 1318 |
{0x1.ce43bap+106f, chars_format::fixed, 0, "146497485749802409635393442938880"}, |
| 1319 |
{0x1.b3ea00p+107f, chars_format::fixed, 0, "276293361488025452794185737306112"}, |
| 1320 |
{0x1.03a052p+108f, chars_format::fixed, 0, "329115373194929392757058784198656"}, |
| 1321 |
{0x1.6f59e0p+109f, chars_format::fixed, 0, "931345619455766569116232623063040"}, |
| 1322 |
{0x1.05adacp+110f, chars_format::fixed, 0, "1326867152522435745601434087849984"}, |
| 1323 |
{0x1.2cdef0p+111f, chars_format::fixed, 0, "3051192904788012466473218045116416"}, |
| 1324 |
{0x1.e81552p+112f, chars_format::fixed, 0, "9899505055765620068271358482579456"}, |
| 1325 |
{0x1.bfa8f4p+113f, chars_format::fixed, 0, "18159245876954178992833811110166528"}, |
| 1326 |
{0x1.a14810p+114f, chars_format::fixed, 0, "33853896736735722962455354188759040"}, |
| 1327 |
{0x1.f18b10p+115f, chars_format::fixed, 0, "80731001914916160681187088757948416"}, |
| 1328 |
{0x1.8d6e30p+116f, chars_format::fixed, 0, "128973545052908058560090358153216000"}, |
| 1329 |
{0x1.9480c2p+117f, chars_format::fixed, 0, "262537431192608192877759864086986752"}, |
| 1330 |
{0x1.60975cp+118f, chars_format::fixed, 0, "457689606761340509948952337218273280"}, |
| 1331 |
{0x1.ab1bb2p+119f, chars_format::fixed, 0, "1108836243133298765768030079592431616"}, |
| 1332 |
{0x1.6a0c80p+120f, chars_format::fixed, 0, "1879864992909653247408339011818749952"}, |
| 1333 |
{0x1.2cac2cp+121f, chars_format::fixed, 0, "3122362236102854007005843883842076672"}, |
| 1334 |
{0x1.0baaf6p+122f, chars_format::fixed, 0, "5559243043957593079267046257728684032"}, |
| 1335 |
{0x1.098282p+123f, chars_format::fixed, 0, "11028845443370647144636654644992409600"}, |
| 1336 |
{0x1.122f8ap+124f, chars_format::fixed, 0, "22778456735621461875293910785310326784"}, |
| 1337 |
{0x1.57f4c6p+125f, chars_format::fixed, 0, "57149517363101270672263900542030315520"}, |
| 1338 |
{0x1.05e028p+126f, chars_format::fixed, 0, "87023098173139747570875357950241669120"}, |
| 1339 |
{0x1.9d8424p+127f, chars_format::fixed, 0, "274828637805621292108186801756142829568"}, |
| 1340 |
|
| 1341 |
// Test the maximum mantissa, which generates the most digits for each exponent. |
| 1342 |
{0x0.fffffep-126f, chars_format::fixed, 149, |
| 1343 |
"0." |
| 1344 |
"0000000000000000000000000000000000000117549421069244107548702944484928734882705242874589333385717453057158" |
| 1345 |
"8870475618904265502351336181163787841796875"}, |
| 1346 |
{0x1.fffffep-126f, chars_format::fixed, 149, |
| 1347 |
"0." |
| 1348 |
"0000000000000000000000000000000000000235098856151472858345576598207153302664571798551798085536592623685000" |
| 1349 |
"6129930346077117064851336181163787841796875"}, |
| 1350 |
{0x1.fffffep-125f, chars_format::fixed, 148, |
| 1351 |
"0." |
| 1352 |
"0000000000000000000000000000000000000470197712302945716691153196414306605329143597103596171073185247370001" |
| 1353 |
"225986069215423412970267236232757568359375"}, |
| 1354 |
{0x1.fffffep-124f, chars_format::fixed, 147, |
| 1355 |
"0." |
| 1356 |
"0000000000000000000000000000000000000940395424605891433382306392828613210658287194207192342146370494740002" |
| 1357 |
"45197213843084682594053447246551513671875"}, |
| 1358 |
{0x1.fffffep-123f, chars_format::fixed, 146, |
| 1359 |
"0." |
| 1360 |
"0000000000000000000000000000000000001880790849211782866764612785657226421316574388414384684292740989480004" |
| 1361 |
"9039442768616936518810689449310302734375"}, |
| 1362 |
{0x1.fffffep-122f, chars_format::fixed, 145, |
| 1363 |
"0." |
| 1364 |
"0000000000000000000000000000000000003761581698423565733529225571314452842633148776828769368585481978960009" |
| 1365 |
"807888553723387303762137889862060546875"}, |
| 1366 |
{0x1.fffffep-121f, chars_format::fixed, 144, |
| 1367 |
"0." |
| 1368 |
"0000000000000000000000000000000000007523163396847131467058451142628905685266297553657538737170963957920019" |
| 1369 |
"61577710744677460752427577972412109375"}, |
| 1370 |
{0x1.fffffep-120f, chars_format::fixed, 143, |
| 1371 |
"0." |
| 1372 |
"0000000000000000000000000000000000015046326793694262934116902285257811370532595107315077474341927915840039" |
| 1373 |
"2315542148935492150485515594482421875"}, |
| 1374 |
{0x1.fffffep-119f, chars_format::fixed, 142, |
| 1375 |
"0." |
| 1376 |
"0000000000000000000000000000000000030092653587388525868233804570515622741065190214630154948683855831680078" |
| 1377 |
"463108429787098430097103118896484375"}, |
| 1378 |
{0x1.fffffep-118f, chars_format::fixed, 141, |
| 1379 |
"0." |
| 1380 |
"0000000000000000000000000000000000060185307174777051736467609141031245482130380429260309897367711663360156" |
| 1381 |
"92621685957419686019420623779296875"}, |
| 1382 |
{0x1.fffffep-117f, chars_format::fixed, 140, |
| 1383 |
"0." |
| 1384 |
"0000000000000000000000000000000000120370614349554103472935218282062490964260760858520619794735423326720313" |
| 1385 |
"8524337191483937203884124755859375"}, |
| 1386 |
{0x1.fffffep-116f, chars_format::fixed, 139, |
| 1387 |
"0." |
| 1388 |
"0000000000000000000000000000000000240741228699108206945870436564124981928521521717041239589470846653440627" |
| 1389 |
"704867438296787440776824951171875"}, |
| 1390 |
{0x1.fffffep-115f, chars_format::fixed, 138, |
| 1391 |
"0." |
| 1392 |
"0000000000000000000000000000000000481482457398216413891740873128249963857043043434082479178941693306881255" |
| 1393 |
"40973487659357488155364990234375"}, |
| 1394 |
{0x1.fffffep-114f, chars_format::fixed, 137, |
| 1395 |
"0." |
| 1396 |
"0000000000000000000000000000000000962964914796432827783481746256499927714086086868164958357883386613762510" |
| 1397 |
"8194697531871497631072998046875"}, |
| 1398 |
{0x1.fffffep-113f, chars_format::fixed, 136, |
| 1399 |
"0." |
| 1400 |
"0000000000000000000000000000000001925929829592865655566963492512999855428172173736329916715766773227525021" |
| 1401 |
"638939506374299526214599609375"}, |
| 1402 |
{0x1.fffffep-112f, chars_format::fixed, 135, |
| 1403 |
"0." |
| 1404 |
"0000000000000000000000000000000003851859659185731311133926985025999710856344347472659833431533546455050043" |
| 1405 |
"27787901274859905242919921875"}, |
| 1406 |
{0x1.fffffep-111f, chars_format::fixed, 134, |
| 1407 |
"0." |
| 1408 |
"0000000000000000000000000000000007703719318371462622267853970051999421712688694945319666863067092910100086" |
| 1409 |
"5557580254971981048583984375"}, |
| 1410 |
{0x1.fffffep-110f, chars_format::fixed, 133, |
| 1411 |
"0." |
| 1412 |
"0000000000000000000000000000000015407438636742925244535707940103998843425377389890639333726134185820200173" |
| 1413 |
"111516050994396209716796875"}, |
| 1414 |
{0x1.fffffep-109f, chars_format::fixed, 132, |
| 1415 |
"0." |
| 1416 |
"0000000000000000000000000000000030814877273485850489071415880207997686850754779781278667452268371640400346" |
| 1417 |
"22303210198879241943359375"}, |
| 1418 |
{0x1.fffffep-108f, chars_format::fixed, 131, |
| 1419 |
"0." |
| 1420 |
"0000000000000000000000000000000061629754546971700978142831760415995373701509559562557334904536743280800692" |
| 1421 |
"4460642039775848388671875"}, |
| 1422 |
{0x1.fffffep-107f, chars_format::fixed, 130, |
| 1423 |
"0." |
| 1424 |
"0000000000000000000000000000000123259509093943401956285663520831990747403019119125114669809073486561601384" |
| 1425 |
"892128407955169677734375"}, |
| 1426 |
{0x1.fffffep-106f, chars_format::fixed, 129, |
| 1427 |
"0." |
| 1428 |
"0000000000000000000000000000000246519018187886803912571327041663981494806038238250229339618146973123202769" |
| 1429 |
"78425681591033935546875"}, |
| 1430 |
{0x1.fffffep-105f, chars_format::fixed, 128, |
| 1431 |
"0." |
| 1432 |
"0000000000000000000000000000000493038036375773607825142654083327962989612076476500458679236293946246405539" |
| 1433 |
"5685136318206787109375"}, |
| 1434 |
{0x1.fffffep-104f, chars_format::fixed, 127, |
| 1435 |
"0." |
| 1436 |
"0000000000000000000000000000000986076072751547215650285308166655925979224152953000917358472587892492811079" |
| 1437 |
"137027263641357421875"}, |
| 1438 |
{0x1.fffffep-103f, chars_format::fixed, 126, |
| 1439 |
"0." |
| 1440 |
"0000000000000000000000000000001972152145503094431300570616333311851958448305906001834716945175784985622158" |
| 1441 |
"27405452728271484375"}, |
| 1442 |
{0x1.fffffep-102f, chars_format::fixed, 125, |
| 1443 |
"0." |
| 1444 |
"0000000000000000000000000000003944304291006188862601141232666623703916896611812003669433890351569971244316" |
| 1445 |
"5481090545654296875"}, |
| 1446 |
{0x1.fffffep-101f, chars_format::fixed, 124, |
| 1447 |
"0." |
| 1448 |
"0000000000000000000000000000007888608582012377725202282465333247407833793223624007338867780703139942488633" |
| 1449 |
"096218109130859375"}, |
| 1450 |
{0x1.fffffep-100f, chars_format::fixed, 123, |
| 1451 |
"0." |
| 1452 |
"0000000000000000000000000000015777217164024755450404564930666494815667586447248014677735561406279884977266" |
| 1453 |
"19243621826171875"}, |
| 1454 |
{0x1.fffffep-99f, chars_format::fixed, 122, |
| 1455 |
"0." |
| 1456 |
"0000000000000000000000000000031554434328049510900809129861332989631335172894496029355471122812559769954532" |
| 1457 |
"3848724365234375"}, |
| 1458 |
{0x1.fffffep-98f, chars_format::fixed, 121, |
| 1459 |
"0." |
| 1460 |
"0000000000000000000000000000063108868656099021801618259722665979262670345788992058710942245625119539909064" |
| 1461 |
"769744873046875"}, |
| 1462 |
{0x1.fffffep-97f, chars_format::fixed, 120, |
| 1463 |
"0." |
| 1464 |
"0000000000000000000000000000126217737312198043603236519445331958525340691577984117421884491250239079818129" |
| 1465 |
"53948974609375"}, |
| 1466 |
{0x1.fffffep-96f, chars_format::fixed, 119, |
| 1467 |
"0." |
| 1468 |
"0000000000000000000000000000252435474624396087206473038890663917050681383155968234843768982500478159636259" |
| 1469 |
"0789794921875"}, |
| 1470 |
{0x1.fffffep-95f, chars_format::fixed, 118, |
| 1471 |
"0." |
| 1472 |
"0000000000000000000000000000504870949248792174412946077781327834101362766311936469687537965000956319272518" |
| 1473 |
"157958984375"}, |
| 1474 |
{0x1.fffffep-94f, chars_format::fixed, 117, |
| 1475 |
"0." |
| 1476 |
"0000000000000000000000000001009741898497584348825892155562655668202725532623872939375075930001912638545036" |
| 1477 |
"31591796875"}, |
| 1478 |
{0x1.fffffep-93f, chars_format::fixed, 116, |
| 1479 |
"0." |
| 1480 |
"0000000000000000000000000002019483796995168697651784311125311336405451065247745878750151860003825277090072" |
| 1481 |
"6318359375"}, |
| 1482 |
{0x1.fffffep-92f, chars_format::fixed, 115, |
| 1483 |
"0." |
| 1484 |
"0000000000000000000000000004038967593990337395303568622250622672810902130495491757500303720007650554180145" |
| 1485 |
"263671875"}, |
| 1486 |
{0x1.fffffep-91f, chars_format::fixed, 114, |
| 1487 |
"0." |
| 1488 |
"0000000000000000000000000008077935187980674790607137244501245345621804260990983515000607440015301108360290" |
| 1489 |
"52734375"}, |
| 1490 |
{0x1.fffffep-90f, chars_format::fixed, 113, |
| 1491 |
"0." |
| 1492 |
"0000000000000000000000000016155870375961349581214274489002490691243608521981967030001214880030602216720581" |
| 1493 |
"0546875"}, |
| 1494 |
{0x1.fffffep-89f, chars_format::fixed, 112, |
| 1495 |
"0." |
| 1496 |
"0000000000000000000000000032311740751922699162428548978004981382487217043963934060002429760061204433441162" |
| 1497 |
"109375"}, |
| 1498 |
{0x1.fffffep-88f, chars_format::fixed, 111, |
| 1499 |
"0." |
| 1500 |
"0000000000000000000000000064623481503845398324857097956009962764974434087927868120004859520122408866882324" |
| 1501 |
"21875"}, |
| 1502 |
{0x1.fffffep-87f, chars_format::fixed, 110, |
| 1503 |
"0." |
| 1504 |
"0000000000000000000000000129246963007690796649714195912019925529948868175855736240009719040244817733764648" |
| 1505 |
"4375"}, |
| 1506 |
{0x1.fffffep-86f, chars_format::fixed, 109, |
| 1507 |
"0." |
| 1508 |
"0000000000000000000000000258493926015381593299428391824039851059897736351711472480019438080489635467529296" |
| 1509 |
"875"}, |
| 1510 |
{0x1.fffffep-85f, chars_format::fixed, 108, |
| 1511 |
"0." |
| 1512 |
"0000000000000000000000000516987852030763186598856783648079702119795472703422944960038876160979270935058593" |
| 1513 |
"75"}, |
| 1514 |
{0x1.fffffep-84f, chars_format::fixed, 107, |
| 1515 |
"0." |
| 1516 |
"0000000000000000000000001033975704061526373197713567296159404239590945406845889920077752321958541870117187" |
| 1517 |
"5"}, |
| 1518 |
{0x1.fffffep-83f, chars_format::fixed, 106, |
| 1519 |
"0." |
| 1520 |
"000000000000000000000000206795140812305274639542713459231880847918189081369177984015550464391708374023437" |
| 1521 |
"5"}, |
| 1522 |
{0x1.fffffep-82f, chars_format::fixed, 105, |
| 1523 |
"0." |
| 1524 |
"00000000000000000000000041359028162461054927908542691846376169583637816273835596803110092878341674804687" |
| 1525 |
"5"}, |
| 1526 |
{0x1.fffffep-81f, chars_format::fixed, 104, |
| 1527 |
"0." |
| 1528 |
"00000000000000000000000082718056324922109855817085383692752339167275632547671193606220185756683349609375"}, |
| 1529 |
{0x1.fffffep-80f, chars_format::fixed, 103, |
| 1530 |
"0." |
| 1531 |
"0000000000000000000000016543611264984421971163417076738550467833455126509534238721244037151336669921875"}, |
| 1532 |
{0x1.fffffep-79f, chars_format::fixed, 102, |
| 1533 |
"0.000000000000000000000003308722252996884394232683415347710093566691025301906847744248807430267333984375"}, |
| 1534 |
{0x1.fffffep-78f, chars_format::fixed, 101, |
| 1535 |
"0.00000000000000000000000661744450599376878846536683069542018713338205060381369548849761486053466796875"}, |
| 1536 |
{0x1.fffffep-77f, chars_format::fixed, 100, |
| 1537 |
"0.0000000000000000000000132348890119875375769307336613908403742667641012076273909769952297210693359375"}, |
| 1538 |
{0x1.fffffep-76f, chars_format::fixed, 99, |
| 1539 |
"0.000000000000000000000026469778023975075153861467322781680748533528202415254781953990459442138671875"}, |
| 1540 |
{0x1.fffffep-75f, chars_format::fixed, 98, |
| 1541 |
"0.00000000000000000000005293955604795015030772293464556336149706705640483050956390798091888427734375"}, |
| 1542 |
{0x1.fffffep-74f, chars_format::fixed, 97, |
| 1543 |
"0.0000000000000000000001058791120959003006154458692911267229941341128096610191278159618377685546875"}, |
| 1544 |
{0x1.fffffep-73f, chars_format::fixed, 96, |
| 1545 |
"0.000000000000000000000211758224191800601230891738582253445988268225619322038255631923675537109375"}, |
| 1546 |
{0x1.fffffep-72f, chars_format::fixed, 95, |
| 1547 |
"0.00000000000000000000042351644838360120246178347716450689197653645123864407651126384735107421875"}, |
| 1548 |
{0x1.fffffep-71f, chars_format::fixed, 94, |
| 1549 |
"0.0000000000000000000008470328967672024049235669543290137839530729024772881530225276947021484375"}, |
| 1550 |
{0x1.fffffep-70f, chars_format::fixed, 93, |
| 1551 |
"0.000000000000000000001694065793534404809847133908658027567906145804954576306045055389404296875"}, |
| 1552 |
{0x1.fffffep-69f, chars_format::fixed, 92, |
| 1553 |
"0.00000000000000000000338813158706880961969426781731605513581229160990915261209011077880859375"}, |
| 1554 |
{0x1.fffffep-68f, chars_format::fixed, 91, |
| 1555 |
"0.0000000000000000000067762631741376192393885356346321102716245832198183052241802215576171875"}, |
| 1556 |
{0x1.fffffep-67f, chars_format::fixed, 90, |
| 1557 |
"0.000000000000000000013552526348275238478777071269264220543249166439636610448360443115234375"}, |
| 1558 |
{0x1.fffffep-66f, chars_format::fixed, 89, |
| 1559 |
"0.00000000000000000002710505269655047695755414253852844108649833287927322089672088623046875"}, |
| 1560 |
{0x1.fffffep-65f, chars_format::fixed, 88, |
| 1561 |
"0.0000000000000000000542101053931009539151082850770568821729966657585464417934417724609375"}, |
| 1562 |
{0x1.fffffep-64f, chars_format::fixed, 87, |
| 1563 |
"0.000000000000000000108420210786201907830216570154113764345993331517092883586883544921875"}, |
| 1564 |
{0x1.fffffep-63f, chars_format::fixed, 86, |
| 1565 |
"0.00000000000000000021684042157240381566043314030822752869198666303418576717376708984375"}, |
| 1566 |
{0x1.fffffep-62f, chars_format::fixed, 85, |
| 1567 |
"0.0000000000000000004336808431448076313208662806164550573839733260683715343475341796875"}, |
| 1568 |
{0x1.fffffep-61f, chars_format::fixed, 84, |
| 1569 |
"0.000000000000000000867361686289615262641732561232910114767946652136743068695068359375"}, |
| 1570 |
{0x1.fffffep-60f, chars_format::fixed, 83, |
| 1571 |
"0.00000000000000000173472337257923052528346512246582022953589330427348613739013671875"}, |
| 1572 |
{0x1.fffffep-59f, chars_format::fixed, 82, |
| 1573 |
"0.0000000000000000034694467451584610505669302449316404590717866085469722747802734375"}, |
| 1574 |
{0x1.fffffep-58f, chars_format::fixed, 81, |
| 1575 |
"0.000000000000000006938893490316922101133860489863280918143573217093944549560546875"}, |
| 1576 |
{0x1.fffffep-57f, chars_format::fixed, 80, |
| 1577 |
"0.00000000000000001387778698063384420226772097972656183628714643418788909912109375"}, |
| 1578 |
{0x1.fffffep-56f, chars_format::fixed, 79, |
| 1579 |
"0.0000000000000000277555739612676884045354419594531236725742928683757781982421875"}, |
| 1580 |
{0x1.fffffep-55f, chars_format::fixed, 78, |
| 1581 |
"0.000000000000000055511147922535376809070883918906247345148585736751556396484375"}, |
| 1582 |
{0x1.fffffep-54f, chars_format::fixed, 77, |
| 1583 |
"0.00000000000000011102229584507075361814176783781249469029717147350311279296875"}, |
| 1584 |
{0x1.fffffep-53f, chars_format::fixed, 76, |
| 1585 |
"0.0000000000000002220445916901415072362835356756249893805943429470062255859375"}, |
| 1586 |
{0x1.fffffep-52f, chars_format::fixed, 75, |
| 1587 |
"0.000000000000000444089183380283014472567071351249978761188685894012451171875"}, |
| 1588 |
{0x1.fffffep-51f, chars_format::fixed, 74, |
| 1589 |
"0.00000000000000088817836676056602894513414270249995752237737178802490234375"}, |
| 1590 |
{0x1.fffffep-50f, chars_format::fixed, 73, |
| 1591 |
"0.0000000000000017763567335211320578902682854049999150447547435760498046875"}, |
| 1592 |
{0x1.fffffep-49f, chars_format::fixed, 72, |
| 1593 |
"0.000000000000003552713467042264115780536570809999830089509487152099609375"}, |
| 1594 |
{0x1.fffffep-48f, chars_format::fixed, 71, |
| 1595 |
"0.00000000000000710542693408452823156107314161999966017901897430419921875"}, |
| 1596 |
{0x1.fffffep-47f, chars_format::fixed, 70, |
| 1597 |
"0.0000000000000142108538681690564631221462832399993203580379486083984375"}, |
| 1598 |
{0x1.fffffep-46f, chars_format::fixed, 69, |
| 1599 |
"0.000000000000028421707736338112926244292566479998640716075897216796875"}, |
| 1600 |
{0x1.fffffep-45f, chars_format::fixed, 68, |
| 1601 |
"0.00000000000005684341547267622585248858513295999728143215179443359375"}, |
| 1602 |
{0x1.fffffep-44f, chars_format::fixed, 67, "0.0000000000001136868309453524517049771702659199945628643035888671875"}, |
| 1603 |
{0x1.fffffep-43f, chars_format::fixed, 66, "0.000000000000227373661890704903409954340531839989125728607177734375"}, |
| 1604 |
{0x1.fffffep-42f, chars_format::fixed, 65, "0.00000000000045474732378140980681990868106367997825145721435546875"}, |
| 1605 |
{0x1.fffffep-41f, chars_format::fixed, 64, "0.0000000000009094946475628196136398173621273599565029144287109375"}, |
| 1606 |
{0x1.fffffep-40f, chars_format::fixed, 63, "0.000000000001818989295125639227279634724254719913005828857421875"}, |
| 1607 |
{0x1.fffffep-39f, chars_format::fixed, 62, "0.00000000000363797859025127845455926944850943982601165771484375"}, |
| 1608 |
{0x1.fffffep-38f, chars_format::fixed, 61, "0.0000000000072759571805025569091185388970188796520233154296875"}, |
| 1609 |
{0x1.fffffep-37f, chars_format::fixed, 60, "0.000000000014551914361005113818237077794037759304046630859375"}, |
| 1610 |
{0x1.fffffep-36f, chars_format::fixed, 59, "0.00000000002910382872201022763647415558807551860809326171875"}, |
| 1611 |
{0x1.fffffep-35f, chars_format::fixed, 58, "0.0000000000582076574440204552729483111761510372161865234375"}, |
| 1612 |
{0x1.fffffep-34f, chars_format::fixed, 57, "0.000000000116415314888040910545896622352302074432373046875"}, |
| 1613 |
{0x1.fffffep-33f, chars_format::fixed, 56, "0.00000000023283062977608182109179324470460414886474609375"}, |
| 1614 |
{0x1.fffffep-32f, chars_format::fixed, 55, "0.0000000004656612595521636421835864894092082977294921875"}, |
| 1615 |
{0x1.fffffep-31f, chars_format::fixed, 54, "0.000000000931322519104327284367172978818416595458984375"}, |
| 1616 |
{0x1.fffffep-30f, chars_format::fixed, 53, "0.00000000186264503820865456873434595763683319091796875"}, |
| 1617 |
{0x1.fffffep-29f, chars_format::fixed, 52, "0.0000000037252900764173091374686919152736663818359375"}, |
| 1618 |
{0x1.fffffep-28f, chars_format::fixed, 51, "0.000000007450580152834618274937383830547332763671875"}, |
| 1619 |
{0x1.fffffep-27f, chars_format::fixed, 50, "0.00000001490116030566923654987476766109466552734375"}, |
| 1620 |
{0x1.fffffep-26f, chars_format::fixed, 49, "0.0000000298023206113384730997495353221893310546875"}, |
| 1621 |
{0x1.fffffep-25f, chars_format::fixed, 48, "0.000000059604641222676946199499070644378662109375"}, |
| 1622 |
{0x1.fffffep-24f, chars_format::fixed, 47, "0.00000011920928244535389239899814128875732421875"}, |
| 1623 |
{0x1.fffffep-23f, chars_format::fixed, 46, "0.0000002384185648907077847979962825775146484375"}, |
| 1624 |
{0x1.fffffep-22f, chars_format::fixed, 45, "0.000000476837129781415569595992565155029296875"}, |
| 1625 |
{0x1.fffffep-21f, chars_format::fixed, 44, "0.00000095367425956283113919198513031005859375"}, |
| 1626 |
{0x1.fffffep-20f, chars_format::fixed, 43, "0.0000019073485191256622783839702606201171875"}, |
| 1627 |
{0x1.fffffep-19f, chars_format::fixed, 42, "0.000003814697038251324556767940521240234375"}, |
| 1628 |
{0x1.fffffep-18f, chars_format::fixed, 41, "0.00000762939407650264911353588104248046875"}, |
| 1629 |
{0x1.fffffep-17f, chars_format::fixed, 40, "0.0000152587881530052982270717620849609375"}, |
| 1630 |
{0x1.fffffep-16f, chars_format::fixed, 39, "0.000030517576306010596454143524169921875"}, |
| 1631 |
{0x1.fffffep-15f, chars_format::fixed, 38, "0.00006103515261202119290828704833984375"}, |
| 1632 |
{0x1.fffffep-14f, chars_format::fixed, 37, "0.0001220703052240423858165740966796875"}, |
| 1633 |
{0x1.fffffep-13f, chars_format::fixed, 36, "0.000244140610448084771633148193359375"}, |
| 1634 |
{0x1.fffffep-12f, chars_format::fixed, 35, "0.00048828122089616954326629638671875"}, |
| 1635 |
{0x1.fffffep-11f, chars_format::fixed, 34, "0.0009765624417923390865325927734375"}, |
| 1636 |
{0x1.fffffep-10f, chars_format::fixed, 33, "0.001953124883584678173065185546875"}, |
| 1637 |
{0x1.fffffep-9f, chars_format::fixed, 32, "0.00390624976716935634613037109375"}, |
| 1638 |
{0x1.fffffep-8f, chars_format::fixed, 31, "0.0078124995343387126922607421875"}, |
| 1639 |
{0x1.fffffep-7f, chars_format::fixed, 30, "0.015624999068677425384521484375"}, |
| 1640 |
{0x1.fffffep-6f, chars_format::fixed, 29, "0.03124999813735485076904296875"}, |
| 1641 |
{0x1.fffffep-5f, chars_format::fixed, 28, "0.0624999962747097015380859375"}, |
| 1642 |
{0x1.fffffep-4f, chars_format::fixed, 27, "0.124999992549419403076171875"}, |
| 1643 |
{0x1.fffffep-3f, chars_format::fixed, 26, "0.24999998509883880615234375"}, |
| 1644 |
{0x1.fffffep-2f, chars_format::fixed, 25, "0.4999999701976776123046875"}, |
| 1645 |
{0x1.fffffep-1f, chars_format::fixed, 24, "0.999999940395355224609375"}, |
| 1646 |
{0x1.fffffep+0f, chars_format::fixed, 23, "1.99999988079071044921875"}, |
| 1647 |
{0x1.fffffep+1f, chars_format::fixed, 22, "3.9999997615814208984375"}, |
| 1648 |
{0x1.fffffep+2f, chars_format::fixed, 21, "7.999999523162841796875"}, |
| 1649 |
{0x1.fffffep+3f, chars_format::fixed, 20, "15.99999904632568359375"}, |
| 1650 |
{0x1.fffffep+4f, chars_format::fixed, 19, "31.9999980926513671875"}, |
| 1651 |
{0x1.fffffep+5f, chars_format::fixed, 18, "63.999996185302734375"}, |
| 1652 |
{0x1.fffffep+6f, chars_format::fixed, 17, "127.99999237060546875"}, |
| 1653 |
{0x1.fffffep+7f, chars_format::fixed, 16, "255.9999847412109375"}, |
| 1654 |
{0x1.fffffep+8f, chars_format::fixed, 15, "511.999969482421875"}, |
| 1655 |
{0x1.fffffep+9f, chars_format::fixed, 14, "1023.99993896484375"}, |
| 1656 |
{0x1.fffffep+10f, chars_format::fixed, 13, "2047.9998779296875"}, |
| 1657 |
{0x1.fffffep+11f, chars_format::fixed, 12, "4095.999755859375"}, |
| 1658 |
{0x1.fffffep+12f, chars_format::fixed, 11, "8191.99951171875"}, |
| 1659 |
{0x1.fffffep+13f, chars_format::fixed, 10, "16383.9990234375"}, |
| 1660 |
{0x1.fffffep+14f, chars_format::fixed, 9, "32767.998046875"}, |
| 1661 |
{0x1.fffffep+15f, chars_format::fixed, 8, "65535.99609375"}, |
| 1662 |
{0x1.fffffep+16f, chars_format::fixed, 7, "131071.9921875"}, |
| 1663 |
{0x1.fffffep+17f, chars_format::fixed, 6, "262143.984375"}, |
| 1664 |
{0x1.fffffep+18f, chars_format::fixed, 5, "524287.96875"}, |
| 1665 |
{0x1.fffffep+19f, chars_format::fixed, 4, "1048575.9375"}, |
| 1666 |
{0x1.fffffep+20f, chars_format::fixed, 3, "2097151.875"}, |
| 1667 |
{0x1.fffffep+21f, chars_format::fixed, 2, "4194303.75"}, |
| 1668 |
{0x1.fffffep+22f, chars_format::fixed, 1, "8388607.5"}, |
| 1669 |
{0x1.fffffep+23f, chars_format::fixed, 0, "16777215"}, |
| 1670 |
{0x1.fffffep+24f, chars_format::fixed, 0, "33554430"}, |
| 1671 |
{0x1.fffffep+25f, chars_format::fixed, 0, "67108860"}, |
| 1672 |
{0x1.fffffep+26f, chars_format::fixed, 0, "134217720"}, |
| 1673 |
{0x1.fffffep+27f, chars_format::fixed, 0, "268435440"}, |
| 1674 |
{0x1.fffffep+28f, chars_format::fixed, 0, "536870880"}, |
| 1675 |
{0x1.fffffep+29f, chars_format::fixed, 0, "1073741760"}, |
| 1676 |
{0x1.fffffep+30f, chars_format::fixed, 0, "2147483520"}, |
| 1677 |
{0x1.fffffep+31f, chars_format::fixed, 0, "4294967040"}, |
| 1678 |
{0x1.fffffep+32f, chars_format::fixed, 0, "8589934080"}, |
| 1679 |
{0x1.fffffep+33f, chars_format::fixed, 0, "17179868160"}, |
| 1680 |
{0x1.fffffep+34f, chars_format::fixed, 0, "34359736320"}, |
| 1681 |
{0x1.fffffep+35f, chars_format::fixed, 0, "68719472640"}, |
| 1682 |
{0x1.fffffep+36f, chars_format::fixed, 0, "137438945280"}, |
| 1683 |
{0x1.fffffep+37f, chars_format::fixed, 0, "274877890560"}, |
| 1684 |
{0x1.fffffep+38f, chars_format::fixed, 0, "549755781120"}, |
| 1685 |
{0x1.fffffep+39f, chars_format::fixed, 0, "1099511562240"}, |
| 1686 |
{0x1.fffffep+40f, chars_format::fixed, 0, "2199023124480"}, |
| 1687 |
{0x1.fffffep+41f, chars_format::fixed, 0, "4398046248960"}, |
| 1688 |
{0x1.fffffep+42f, chars_format::fixed, 0, "8796092497920"}, |
| 1689 |
{0x1.fffffep+43f, chars_format::fixed, 0, "17592184995840"}, |
| 1690 |
{0x1.fffffep+44f, chars_format::fixed, 0, "35184369991680"}, |
| 1691 |
{0x1.fffffep+45f, chars_format::fixed, 0, "70368739983360"}, |
| 1692 |
{0x1.fffffep+46f, chars_format::fixed, 0, "140737479966720"}, |
| 1693 |
{0x1.fffffep+47f, chars_format::fixed, 0, "281474959933440"}, |
| 1694 |
{0x1.fffffep+48f, chars_format::fixed, 0, "562949919866880"}, |
| 1695 |
{0x1.fffffep+49f, chars_format::fixed, 0, "1125899839733760"}, |
| 1696 |
{0x1.fffffep+50f, chars_format::fixed, 0, "2251799679467520"}, |
| 1697 |
{0x1.fffffep+51f, chars_format::fixed, 0, "4503599358935040"}, |
| 1698 |
{0x1.fffffep+52f, chars_format::fixed, 0, "9007198717870080"}, |
| 1699 |
{0x1.fffffep+53f, chars_format::fixed, 0, "18014397435740160"}, |
| 1700 |
{0x1.fffffep+54f, chars_format::fixed, 0, "36028794871480320"}, |
| 1701 |
{0x1.fffffep+55f, chars_format::fixed, 0, "72057589742960640"}, |
| 1702 |
{0x1.fffffep+56f, chars_format::fixed, 0, "144115179485921280"}, |
| 1703 |
{0x1.fffffep+57f, chars_format::fixed, 0, "288230358971842560"}, |
| 1704 |
{0x1.fffffep+58f, chars_format::fixed, 0, "576460717943685120"}, |
| 1705 |
{0x1.fffffep+59f, chars_format::fixed, 0, "1152921435887370240"}, |
| 1706 |
{0x1.fffffep+60f, chars_format::fixed, 0, "2305842871774740480"}, |
| 1707 |
{0x1.fffffep+61f, chars_format::fixed, 0, "4611685743549480960"}, |
| 1708 |
{0x1.fffffep+62f, chars_format::fixed, 0, "9223371487098961920"}, |
| 1709 |
{0x1.fffffep+63f, chars_format::fixed, 0, "18446742974197923840"}, |
| 1710 |
{0x1.fffffep+64f, chars_format::fixed, 0, "36893485948395847680"}, |
| 1711 |
{0x1.fffffep+65f, chars_format::fixed, 0, "73786971896791695360"}, |
| 1712 |
{0x1.fffffep+66f, chars_format::fixed, 0, "147573943793583390720"}, |
| 1713 |
{0x1.fffffep+67f, chars_format::fixed, 0, "295147887587166781440"}, |
| 1714 |
{0x1.fffffep+68f, chars_format::fixed, 0, "590295775174333562880"}, |
| 1715 |
{0x1.fffffep+69f, chars_format::fixed, 0, "1180591550348667125760"}, |
| 1716 |
{0x1.fffffep+70f, chars_format::fixed, 0, "2361183100697334251520"}, |
| 1717 |
{0x1.fffffep+71f, chars_format::fixed, 0, "4722366201394668503040"}, |
| 1718 |
{0x1.fffffep+72f, chars_format::fixed, 0, "9444732402789337006080"}, |
| 1719 |
{0x1.fffffep+73f, chars_format::fixed, 0, "18889464805578674012160"}, |
| 1720 |
{0x1.fffffep+74f, chars_format::fixed, 0, "37778929611157348024320"}, |
| 1721 |
{0x1.fffffep+75f, chars_format::fixed, 0, "75557859222314696048640"}, |
| 1722 |
{0x1.fffffep+76f, chars_format::fixed, 0, "151115718444629392097280"}, |
| 1723 |
{0x1.fffffep+77f, chars_format::fixed, 0, "302231436889258784194560"}, |
| 1724 |
{0x1.fffffep+78f, chars_format::fixed, 0, "604462873778517568389120"}, |
| 1725 |
{0x1.fffffep+79f, chars_format::fixed, 0, "1208925747557035136778240"}, |
| 1726 |
{0x1.fffffep+80f, chars_format::fixed, 0, "2417851495114070273556480"}, |
| 1727 |
{0x1.fffffep+81f, chars_format::fixed, 0, "4835702990228140547112960"}, |
| 1728 |
{0x1.fffffep+82f, chars_format::fixed, 0, "9671405980456281094225920"}, |
| 1729 |
{0x1.fffffep+83f, chars_format::fixed, 0, "19342811960912562188451840"}, |
| 1730 |
{0x1.fffffep+84f, chars_format::fixed, 0, "38685623921825124376903680"}, |
| 1731 |
{0x1.fffffep+85f, chars_format::fixed, 0, "77371247843650248753807360"}, |
| 1732 |
{0x1.fffffep+86f, chars_format::fixed, 0, "154742495687300497507614720"}, |
| 1733 |
{0x1.fffffep+87f, chars_format::fixed, 0, "309484991374600995015229440"}, |
| 1734 |
{0x1.fffffep+88f, chars_format::fixed, 0, "618969982749201990030458880"}, |
| 1735 |
{0x1.fffffep+89f, chars_format::fixed, 0, "1237939965498403980060917760"}, |
| 1736 |
{0x1.fffffep+90f, chars_format::fixed, 0, "2475879930996807960121835520"}, |
| 1737 |
{0x1.fffffep+91f, chars_format::fixed, 0, "4951759861993615920243671040"}, |
| 1738 |
{0x1.fffffep+92f, chars_format::fixed, 0, "9903519723987231840487342080"}, |
| 1739 |
{0x1.fffffep+93f, chars_format::fixed, 0, "19807039447974463680974684160"}, |
| 1740 |
{0x1.fffffep+94f, chars_format::fixed, 0, "39614078895948927361949368320"}, |
| 1741 |
{0x1.fffffep+95f, chars_format::fixed, 0, "79228157791897854723898736640"}, |
| 1742 |
{0x1.fffffep+96f, chars_format::fixed, 0, "158456315583795709447797473280"}, |
| 1743 |
{0x1.fffffep+97f, chars_format::fixed, 0, "316912631167591418895594946560"}, |
| 1744 |
{0x1.fffffep+98f, chars_format::fixed, 0, "633825262335182837791189893120"}, |
| 1745 |
{0x1.fffffep+99f, chars_format::fixed, 0, "1267650524670365675582379786240"}, |
| 1746 |
{0x1.fffffep+100f, chars_format::fixed, 0, "2535301049340731351164759572480"}, |
| 1747 |
{0x1.fffffep+101f, chars_format::fixed, 0, "5070602098681462702329519144960"}, |
| 1748 |
{0x1.fffffep+102f, chars_format::fixed, 0, "10141204197362925404659038289920"}, |
| 1749 |
{0x1.fffffep+103f, chars_format::fixed, 0, "20282408394725850809318076579840"}, |
| 1750 |
{0x1.fffffep+104f, chars_format::fixed, 0, "40564816789451701618636153159680"}, |
| 1751 |
{0x1.fffffep+105f, chars_format::fixed, 0, "81129633578903403237272306319360"}, |
| 1752 |
{0x1.fffffep+106f, chars_format::fixed, 0, "162259267157806806474544612638720"}, |
| 1753 |
{0x1.fffffep+107f, chars_format::fixed, 0, "324518534315613612949089225277440"}, |
| 1754 |
{0x1.fffffep+108f, chars_format::fixed, 0, "649037068631227225898178450554880"}, |
| 1755 |
{0x1.fffffep+109f, chars_format::fixed, 0, "1298074137262454451796356901109760"}, |
| 1756 |
{0x1.fffffep+110f, chars_format::fixed, 0, "2596148274524908903592713802219520"}, |
| 1757 |
{0x1.fffffep+111f, chars_format::fixed, 0, "5192296549049817807185427604439040"}, |
| 1758 |
{0x1.fffffep+112f, chars_format::fixed, 0, "10384593098099635614370855208878080"}, |
| 1759 |
{0x1.fffffep+113f, chars_format::fixed, 0, "20769186196199271228741710417756160"}, |
| 1760 |
{0x1.fffffep+114f, chars_format::fixed, 0, "41538372392398542457483420835512320"}, |
| 1761 |
{0x1.fffffep+115f, chars_format::fixed, 0, "83076744784797084914966841671024640"}, |
| 1762 |
{0x1.fffffep+116f, chars_format::fixed, 0, "166153489569594169829933683342049280"}, |
| 1763 |
{0x1.fffffep+117f, chars_format::fixed, 0, "332306979139188339659867366684098560"}, |
| 1764 |
{0x1.fffffep+118f, chars_format::fixed, 0, "664613958278376679319734733368197120"}, |
| 1765 |
{0x1.fffffep+119f, chars_format::fixed, 0, "1329227916556753358639469466736394240"}, |
| 1766 |
{0x1.fffffep+120f, chars_format::fixed, 0, "2658455833113506717278938933472788480"}, |
| 1767 |
{0x1.fffffep+121f, chars_format::fixed, 0, "5316911666227013434557877866945576960"}, |
| 1768 |
{0x1.fffffep+122f, chars_format::fixed, 0, "10633823332454026869115755733891153920"}, |
| 1769 |
{0x1.fffffep+123f, chars_format::fixed, 0, "21267646664908053738231511467782307840"}, |
| 1770 |
{0x1.fffffep+124f, chars_format::fixed, 0, "42535293329816107476463022935564615680"}, |
| 1771 |
{0x1.fffffep+125f, chars_format::fixed, 0, "85070586659632214952926045871129231360"}, |
| 1772 |
{0x1.fffffep+126f, chars_format::fixed, 0, "170141173319264429905852091742258462720"}, |
| 1773 |
{0x1.fffffep+127f, chars_format::fixed, 0, "340282346638528859811704183484516925440"}, |
| 1774 |
}; |
| 1775 |
|
| 1776 |
inline constexpr float_to_chars_testcase float_scientific_precision_to_chars_test_cases[] = { |
| 1777 |
// Test special cases (zero, inf, nan) and an ordinary case. Also test negative signs. |
| 1778 |
{0.0f, chars_format::scientific, 4, "0.0000e+00"}, |
| 1779 |
{-0.0f, chars_format::scientific, 4, "-0.0000e+00"}, |
| 1780 |
{float_inf, chars_format::scientific, 4, "inf"}, |
| 1781 |
{-float_inf, chars_format::scientific, 4, "-inf"}, |
| 1782 |
{float_nan, chars_format::scientific, 4, "nan"}, |
| 1783 |
{-float_nan, chars_format::scientific, 4, "-nan"}, |
| 1784 |
{1.729f, chars_format::scientific, 4, "1.7290e+00"}, |
| 1785 |
{-1.729f, chars_format::scientific, 4, "-1.7290e+00"}, |
| 1786 |
|
| 1787 |
// Ryu Printf Zero |
| 1788 |
{0.0f, chars_format::scientific, 4, "0.0000e+00"}, |
| 1789 |
{0.0f, chars_format::scientific, 3, "0.000e+00"}, |
| 1790 |
{0.0f, chars_format::scientific, 2, "0.00e+00"}, |
| 1791 |
{0.0f, chars_format::scientific, 1, "0.0e+00"}, |
| 1792 |
{0.0f, chars_format::scientific, 0, "0e+00"}, |
| 1793 |
|
| 1794 |
// Test corner cases. |
| 1795 |
{0x0.000002p-126f, chars_format::scientific, 104, // min subnormal |
| 1796 |
"1." |
| 1797 |
"40129846432481707092372958328991613128026194187651577175706828388979108268586060148663818836212158203125e-" |
| 1798 |
"45"}, |
| 1799 |
{0x0.fffffep-126f, chars_format::scientific, 111, // max subnormal |
| 1800 |
"1." |
| 1801 |
"1754942106924410754870294448492873488270524287458933338571745305715888704756189042655023513361811637878417" |
| 1802 |
"96875e-38"}, |
| 1803 |
{0x1p-126f, chars_format::scientific, 88, // min normal |
| 1804 |
"1.1754943508222875079687365372222456778186655567720875215087517062784172594547271728515625e-38"}, |
| 1805 |
{0x1.fffffep+127f, chars_format::scientific, 37, // max normal |
| 1806 |
"3.4028234663852885981170418348451692544e+38"}, |
| 1807 |
|
| 1808 |
// Ryu Printf AllPowersOfTen |
| 1809 |
// These values test every power of ten that's within the range of floats. |
| 1810 |
{1e-44f, chars_format::scientific, 104, |
| 1811 |
"9." |
| 1812 |
"80908925027371949646610708302941291896183359313561040229947798722853757880102421040646731853485107421875e-" |
| 1813 |
"45"}, |
| 1814 |
{1e-43f, chars_format::scientific, 105, |
| 1815 |
"9." |
| 1816 |
"949219096706201203558480041358404532089859787323261979475184815617516687069610270555131137371063232421875e" |
| 1817 |
"-44"}, |
| 1818 |
{1e-42f, chars_format::scientific, 106, |
| 1819 |
"1." |
| 1820 |
"0005271035279193886395429224690001177341070264998322610345467546973108330377044694614596664905548095703125" |
| 1821 |
"e-42"}, |
| 1822 |
{1e-41f, chars_format::scientific, 102, |
| 1823 |
"9.999665841421894618111734306356841512815949217230816547258439273837549166046301252208650112152099609375e-" |
| 1824 |
"42"}, |
| 1825 |
{1e-40f, chars_format::scientific, 107, |
| 1826 |
"9." |
| 1827 |
"9999461011147595815259190522734994960422052696191918504127906874943271242628384243289474397897720336914062" |
| 1828 |
"5e-41"}, |
| 1829 |
{1e-39f, chars_format::scientific, 107, |
| 1830 |
"1." |
| 1831 |
"0000002153053332574208756001456831092687456480096866911043660970225682715906145858753006905317306518554687" |
| 1832 |
"5e-39"}, |
| 1833 |
{1e-38f, chars_format::scientific, 109, |
| 1834 |
"9." |
| 1835 |
"9999993504564039245746141539976645128551939195729831580121174560891149363239804870318039320409297943115234" |
| 1836 |
"375e-39"}, |
| 1837 |
{1e-37f, chars_format::scientific, 107, |
| 1838 |
"9." |
| 1839 |
"9999999109757896545014425234894978288216464316777599086184261589164284922404135613760445266962051391601562" |
| 1840 |
"5e-38"}, |
| 1841 |
{1e-36f, chars_format::scientific, 107, |
| 1842 |
"1." |
| 1843 |
"0000000359391298238442905219082964481594808441361581309103473121178279336973560020851437002420425415039062" |
| 1844 |
"5e-36"}, |
| 1845 |
{1e-35f, chars_format::scientific, 104, |
| 1846 |
"1." |
| 1847 |
"00000001800250948048663201408455778204855436374880527489094543362735389990803014370612800121307373046875e-" |
| 1848 |
"35"}, |
| 1849 |
{1e-34f, chars_format::scientific, 102, |
| 1850 |
"1.000000046701102029858885626602539647826036732368569844521988439212112353970951517112553119659423828125e-" |
| 1851 |
"34"}, |
| 1852 |
{1e-33f, chars_format::scientific, 98, |
| 1853 |
"1.00000002374222799036108273658815415520405083747275818881715403474430559072061441838741302490234375e-33"}, |
| 1854 |
{1e-32f, chars_format::scientific, 98, |
| 1855 |
"1.00000002374222799036108273658815415520405083747275818881715403474430559072061441838741302490234375e-32"}, |
| 1856 |
{1e-31f, chars_format::scientific, 94, |
| 1857 |
"9.9999997966118983452530118776053400936983791927279980986387197816611660527996718883514404296875e-32"}, |
| 1858 |
{1e-30f, chars_format::scientific, 88, |
| 1859 |
"1.0000000031710768509710513471352647538147514756461109453056224083411507308483123779296875e-30"}, |
| 1860 |
{1e-29f, chars_format::scientific, 88, |
| 1861 |
"1.0000000031710768509710513471352647538147514756461109453056224083411507308483123779296875e-29"}, |
| 1862 |
{1e-28f, chars_format::scientific, 88, |
| 1863 |
"1.0000000031710768509710513471352647538147514756461109453056224083411507308483123779296875e-28"}, |
| 1864 |
{1e-27f, chars_format::scientific, 85, |
| 1865 |
"1.0000000272452011558114995103349890361263429573723815479979748488403856754302978515625e-27"}, |
| 1866 |
{1e-26f, chars_format::scientific, 82, |
| 1867 |
"9.9999998872660226806678244921543018442779658661034858369021094404160976409912109375e-27"}, |
| 1868 |
{1e-25f, chars_format::scientific, 79, |
| 1869 |
"1.0000000195414813782625560981110772657866336832199749551364220678806304931640625e-25"}, |
| 1870 |
{1e-24f, chars_format::scientific, 79, |
| 1871 |
"1.0000000195414813782625560981110772657866336832199749551364220678806304931640625e-24"}, |
| 1872 |
{1e-23f, chars_format::scientific, 75, |
| 1873 |
"9.999999998199587477372609628178631337169779413898140774108469486236572265625e-24"}, |
| 1874 |
{1e-22f, chars_format::scientific, 75, |
| 1875 |
"1.000000031374394956577733179287005745028427128318071481771767139434814453125e-22"}, |
| 1876 |
{1e-21f, chars_format::scientific, 66, "9.999999682655225388967887463487205224055287544615566730499267578125e-22"}, |
| 1877 |
{1e-20f, chars_format::scientific, 66, "9.999999682655225388967887463487205224055287544615566730499267578125e-21"}, |
| 1878 |
{1e-19f, chars_format::scientific, 66, "9.999999682655225388967887463487205224055287544615566730499267578125e-20"}, |
| 1879 |
{1e-18f, chars_format::scientific, 65, "1.00000004581370496574313326554328540396454627625644207000732421875e-18"}, |
| 1880 |
{1e-17f, chars_format::scientific, 61, "9.9999998377515902426605765018763349871733225882053375244140625e-18"}, |
| 1881 |
{1e-16f, chars_format::scientific, 61, "1.0000000168623835263871646450439811815158464014530181884765625e-16"}, |
| 1882 |
{1e-15f, chars_format::scientific, 58, "1.0000000036274937255387218471014421083964407444000244140625e-15"}, |
| 1883 |
{1e-14f, chars_format::scientific, 53, "9.99999982451670044181213370393379591405391693115234375e-15"}, |
| 1884 |
{1e-13f, chars_format::scientific, 53, "9.99999982451670044181213370393379591405391693115234375e-14"}, |
| 1885 |
{1e-12f, chars_format::scientific, 48, "9.999999960041972002500187954865396022796630859375e-13"}, |
| 1886 |
{1e-11f, chars_format::scientific, 48, "9.999999960041972002500187954865396022796630859375e-12"}, |
| 1887 |
{1e-10f, chars_format::scientific, 47, "1.00000001335143196001808973960578441619873046875e-10"}, |
| 1888 |
{1e-09f, chars_format::scientific, 43, "9.9999997171806853657471947371959686279296875e-10"}, |
| 1889 |
{1e-08f, chars_format::scientific, 41, "9.99999993922529029077850282192230224609375e-09"}, |
| 1890 |
{1e-07f, chars_format::scientific, 40, "1.0000000116860974230803549289703369140625e-07"}, |
| 1891 |
{1e-06f, chars_format::scientific, 36, "9.999999974752427078783512115478515625e-07"}, |
| 1892 |
{1e-05f, chars_format::scientific, 32, "9.99999974737875163555145263671875e-06"}, |
| 1893 |
{1e-04f, chars_format::scientific, 32, "9.99999974737875163555145263671875e-05"}, |
| 1894 |
{1e-03f, chars_format::scientific, 30, "1.000000047497451305389404296875e-03"}, |
| 1895 |
{1e-02f, chars_format::scientific, 26, "9.99999977648258209228515625e-03"}, |
| 1896 |
{1e-01f, chars_format::scientific, 26, "1.00000001490116119384765625e-01"}, |
| 1897 |
{1e+00f, chars_format::scientific, 0, "1e+00"}, |
| 1898 |
{1e+01f, chars_format::scientific, 0, "1e+01"}, |
| 1899 |
{1e+02f, chars_format::scientific, 0, "1e+02"}, |
| 1900 |
{1e+03f, chars_format::scientific, 0, "1e+03"}, |
| 1901 |
{1e+04f, chars_format::scientific, 0, "1e+04"}, |
| 1902 |
{1e+05f, chars_format::scientific, 0, "1e+05"}, |
| 1903 |
{1e+06f, chars_format::scientific, 0, "1e+06"}, |
| 1904 |
{1e+07f, chars_format::scientific, 0, "1e+07"}, |
| 1905 |
{1e+08f, chars_format::scientific, 0, "1e+08"}, |
| 1906 |
{1e+09f, chars_format::scientific, 0, "1e+09"}, |
| 1907 |
{1e+10f, chars_format::scientific, 0, "1e+10"}, |
| 1908 |
{1e+11f, chars_format::scientific, 10, "9.9999997952e+10"}, |
| 1909 |
{1e+12f, chars_format::scientific, 11, "9.99999995904e+11"}, |
| 1910 |
{1e+13f, chars_format::scientific, 12, "9.999999827968e+12"}, |
| 1911 |
{1e+14f, chars_format::scientific, 14, "1.00000000376832e+14"}, |
| 1912 |
{1e+15f, chars_format::scientific, 14, "9.99999986991104e+14"}, |
| 1913 |
{1e+16f, chars_format::scientific, 16, "1.0000000272564224e+16"}, |
| 1914 |
{1e+17f, chars_format::scientific, 16, "9.9999998430674944e+16"}, |
| 1915 |
{1e+18f, chars_format::scientific, 16, "9.9999998430674944e+17"}, |
| 1916 |
{1e+19f, chars_format::scientific, 18, "9.999999980506447872e+18"}, |
| 1917 |
{1e+20f, chars_format::scientific, 20, "1.00000002004087734272e+20"}, |
| 1918 |
{1e+21f, chars_format::scientific, 20, "1.00000002004087734272e+21"}, |
| 1919 |
{1e+22f, chars_format::scientific, 21, "9.999999778196308361216e+21"}, |
| 1920 |
{1e+23f, chars_format::scientific, 21, "9.999999778196308361216e+22"}, |
| 1921 |
{1e+24f, chars_format::scientific, 24, "1.000000013848427855085568e+24"}, |
| 1922 |
{1e+25f, chars_format::scientific, 24, "9.999999562023526247432192e+24"}, |
| 1923 |
{1e+26f, chars_format::scientific, 26, "1.00000002537764290115403776e+26"}, |
| 1924 |
{1e+27f, chars_format::scientific, 26, "9.99999988484154753734934528e+26"}, |
| 1925 |
{1e+28f, chars_format::scientific, 27, "9.999999442119689768320106496e+27"}, |
| 1926 |
{1e+29f, chars_format::scientific, 29, "1.00000001504746621987668885504e+29"}, |
| 1927 |
{1e+30f, chars_format::scientific, 29, "1.00000001504746621987668885504e+30"}, |
| 1928 |
{1e+31f, chars_format::scientific, 30, "9.999999848243207295109594873856e+30"}, |
| 1929 |
{1e+32f, chars_format::scientific, 32, "1.00000003318135351409612647563264e+32"}, |
| 1930 |
{1e+33f, chars_format::scientific, 32, "9.99999994495727286427992885035008e+32"}, |
| 1931 |
{1e+34f, chars_format::scientific, 33, "9.999999790214767953607394487959552e+33"}, |
| 1932 |
{1e+35f, chars_format::scientific, 34, "1.0000000409184787596297531937521664e+35"}, |
| 1933 |
{1e+36f, chars_format::scientific, 35, "9.99999961690316245365415600208216064e+35"}, |
| 1934 |
{1e+37f, chars_format::scientific, 36, "9.999999933815812510711506376257961984e+36"}, |
| 1935 |
{1e+38f, chars_format::scientific, 37, "9.9999996802856924650656260769173209088e+37"}, |
| 1936 |
|
| 1937 |
// Ryu Printf RoundToEven |
| 1938 |
{0.125f, chars_format::scientific, 2, "1.25e-01"}, |
| 1939 |
{0.125f, chars_format::scientific, 1, "1.2e-01"}, |
| 1940 |
{0.375f, chars_format::scientific, 2, "3.75e-01"}, |
| 1941 |
{0.375f, chars_format::scientific, 1, "3.8e-01"}, |
| 1942 |
|
| 1943 |
// Ryu Printf RoundToEvenInteger |
| 1944 |
{2.5f, chars_format::scientific, 1, "2.5e+00"}, |
| 1945 |
{2.5f, chars_format::scientific, 0, "2e+00"}, |
| 1946 |
{3.5f, chars_format::scientific, 1, "3.5e+00"}, |
| 1947 |
{3.5f, chars_format::scientific, 0, "4e+00"}, |
| 1948 |
|
| 1949 |
// Ryu Printf NonRoundToEvenScenarios |
| 1950 |
{0.748046875f, chars_format::scientific, 2, "7.48e-01"}, |
| 1951 |
{0.748046875f, chars_format::scientific, 1, "7.5e-01"}, |
| 1952 |
{0.748046875f, chars_format::scientific, 0, "7e-01"}, // 0.75 would round to "8e-01", but this is smaller |
| 1953 |
|
| 1954 |
{0.2509765625f, chars_format::scientific, 2, "2.51e-01"}, |
| 1955 |
{0.2509765625f, chars_format::scientific, 1, "2.5e-01"}, |
| 1956 |
{0.2509765625f, chars_format::scientific, 0, "3e-01"}, // 0.25 would round to "2e-01", but this is larger |
| 1957 |
|
| 1958 |
{0x1.000002p-2f, chars_format::scientific, 24, "2.500000298023223876953125e-01"}, |
| 1959 |
{0x1.000002p-2f, chars_format::scientific, 2, "2.50e-01"}, |
| 1960 |
{0x1.000002p-2f, chars_format::scientific, 1, "2.5e-01"}, |
| 1961 |
{0x1.000002p-2f, chars_format::scientific, 0, "3e-01"}, // 0.25 would round to "2e-01", but this is larger (again) |
| 1962 |
|
| 1963 |
// More rounding tests. |
| 1964 |
{9.5f, chars_format::scientific, 1, "9.5e+00"}, |
| 1965 |
{9.5f, chars_format::scientific, 0, "1e+01"}, |
| 1966 |
{10.5f, chars_format::scientific, 2, "1.05e+01"}, |
| 1967 |
{10.5f, chars_format::scientific, 1, "1.0e+01"}, |
| 1968 |
|
| 1969 |
{1.241f, chars_format::scientific, 3, "1.241e+00"}, |
| 1970 |
{1.241f, chars_format::scientific, 1, "1.2e+00"}, |
| 1971 |
{1.251f, chars_format::scientific, 3, "1.251e+00"}, |
| 1972 |
{1.251f, chars_format::scientific, 1, "1.3e+00"}, |
| 1973 |
{1.261f, chars_format::scientific, 3, "1.261e+00"}, |
| 1974 |
{1.261f, chars_format::scientific, 1, "1.3e+00"}, |
| 1975 |
{1.341f, chars_format::scientific, 3, "1.341e+00"}, |
| 1976 |
{1.341f, chars_format::scientific, 1, "1.3e+00"}, |
| 1977 |
{1.351f, chars_format::scientific, 3, "1.351e+00"}, |
| 1978 |
{1.351f, chars_format::scientific, 1, "1.4e+00"}, |
| 1979 |
{1.361f, chars_format::scientific, 3, "1.361e+00"}, |
| 1980 |
{1.361f, chars_format::scientific, 1, "1.4e+00"}, |
| 1981 |
|
| 1982 |
{2.41f, chars_format::scientific, 2, "2.41e+00"}, |
| 1983 |
{2.41f, chars_format::scientific, 0, "2e+00"}, |
| 1984 |
{2.51f, chars_format::scientific, 2, "2.51e+00"}, |
| 1985 |
{2.51f, chars_format::scientific, 0, "3e+00"}, |
| 1986 |
{2.61f, chars_format::scientific, 2, "2.61e+00"}, |
| 1987 |
{2.61f, chars_format::scientific, 0, "3e+00"}, |
| 1988 |
{3.41f, chars_format::scientific, 2, "3.41e+00"}, |
| 1989 |
{3.41f, chars_format::scientific, 0, "3e+00"}, |
| 1990 |
{3.51f, chars_format::scientific, 2, "3.51e+00"}, |
| 1991 |
{3.51f, chars_format::scientific, 0, "4e+00"}, |
| 1992 |
{3.61f, chars_format::scientific, 2, "3.61e+00"}, |
| 1993 |
{3.61f, chars_format::scientific, 0, "4e+00"}, |
| 1994 |
|
| 1995 |
// Ryu Printf VaryingPrecision |
| 1996 |
{1.142857f, chars_format::scientific, 28, "1.1428569555282592773437500000e+00"}, |
| 1997 |
{1.142857f, chars_format::scientific, 27, "1.142856955528259277343750000e+00"}, |
| 1998 |
{1.142857f, chars_format::scientific, 26, "1.14285695552825927734375000e+00"}, |
| 1999 |
{1.142857f, chars_format::scientific, 25, "1.1428569555282592773437500e+00"}, |
| 2000 |
{1.142857f, chars_format::scientific, 24, "1.142856955528259277343750e+00"}, |
| 2001 |
{1.142857f, chars_format::scientific, 23, "1.14285695552825927734375e+00"}, |
| 2002 |
{1.142857f, chars_format::scientific, 22, "1.1428569555282592773438e+00"}, |
| 2003 |
{1.142857f, chars_format::scientific, 21, "1.142856955528259277344e+00"}, |
| 2004 |
{1.142857f, chars_format::scientific, 20, "1.14285695552825927734e+00"}, |
| 2005 |
{1.142857f, chars_format::scientific, 19, "1.1428569555282592773e+00"}, |
| 2006 |
{1.142857f, chars_format::scientific, 18, "1.142856955528259277e+00"}, |
| 2007 |
{1.142857f, chars_format::scientific, 17, "1.14285695552825928e+00"}, |
| 2008 |
{1.142857f, chars_format::scientific, 16, "1.1428569555282593e+00"}, |
| 2009 |
{1.142857f, chars_format::scientific, 15, "1.142856955528259e+00"}, |
| 2010 |
{1.142857f, chars_format::scientific, 14, "1.14285695552826e+00"}, |
| 2011 |
{1.142857f, chars_format::scientific, 13, "1.1428569555283e+00"}, |
| 2012 |
{1.142857f, chars_format::scientific, 12, "1.142856955528e+00"}, |
| 2013 |
{1.142857f, chars_format::scientific, 11, "1.14285695553e+00"}, |
| 2014 |
{1.142857f, chars_format::scientific, 10, "1.1428569555e+00"}, |
| 2015 |
{1.142857f, chars_format::scientific, 9, "1.142856956e+00"}, |
| 2016 |
{1.142857f, chars_format::scientific, 8, "1.14285696e+00"}, |
| 2017 |
{1.142857f, chars_format::scientific, 7, "1.1428570e+00"}, |
| 2018 |
{1.142857f, chars_format::scientific, 6, "1.142857e+00"}, |
| 2019 |
{1.142857f, chars_format::scientific, 5, "1.14286e+00"}, |
| 2020 |
{1.142857f, chars_format::scientific, 4, "1.1429e+00"}, |
| 2021 |
{1.142857f, chars_format::scientific, 3, "1.143e+00"}, |
| 2022 |
{1.142857f, chars_format::scientific, 2, "1.14e+00"}, |
| 2023 |
{1.142857f, chars_format::scientific, 1, "1.1e+00"}, |
| 2024 |
{1.142857f, chars_format::scientific, 0, "1e+00"}, |
| 2025 |
|
| 2026 |
// Negative precision requests 6 digits of precision. |
| 2027 |
{1.142857f, chars_format::scientific, -1, "1.142857e+00"}, |
| 2028 |
{1.142857f, chars_format::scientific, -2, "1.142857e+00"}, |
| 2029 |
{1.142857f, chars_format::scientific, -3, "1.142857e+00"}, |
| 2030 |
|
| 2031 |
// Ryu Printf Carrying |
| 2032 |
{2.0009f, chars_format::scientific, 4, "2.0009e+00"}, |
| 2033 |
{2.0009f, chars_format::scientific, 3, "2.001e+00"}, |
| 2034 |
{2.0029f, chars_format::scientific, 4, "2.0029e+00"}, |
| 2035 |
{2.0029f, chars_format::scientific, 3, "2.003e+00"}, |
| 2036 |
{2.0099f, chars_format::scientific, 4, "2.0099e+00"}, |
| 2037 |
{2.0099f, chars_format::scientific, 3, "2.010e+00"}, |
| 2038 |
{2.0299f, chars_format::scientific, 4, "2.0299e+00"}, |
| 2039 |
{2.0299f, chars_format::scientific, 3, "2.030e+00"}, |
| 2040 |
{2.0999f, chars_format::scientific, 4, "2.0999e+00"}, |
| 2041 |
{2.0999f, chars_format::scientific, 3, "2.100e+00"}, |
| 2042 |
{2.2999f, chars_format::scientific, 4, "2.2999e+00"}, |
| 2043 |
{2.2999f, chars_format::scientific, 3, "2.300e+00"}, |
| 2044 |
{2.9999f, chars_format::scientific, 4, "2.9999e+00"}, |
| 2045 |
{2.9999f, chars_format::scientific, 3, "3.000e+00"}, |
| 2046 |
{9.9999f, chars_format::scientific, 4, "9.9999e+00"}, |
| 2047 |
{9.9999f, chars_format::scientific, 3, "1.000e+01"}, |
| 2048 |
|
| 2049 |
{2.09f, chars_format::scientific, 2, "2.09e+00"}, |
| 2050 |
{2.09f, chars_format::scientific, 1, "2.1e+00"}, |
| 2051 |
{2.29f, chars_format::scientific, 2, "2.29e+00"}, |
| 2052 |
{2.29f, chars_format::scientific, 1, "2.3e+00"}, |
| 2053 |
{2.99f, chars_format::scientific, 2, "2.99e+00"}, |
| 2054 |
{2.99f, chars_format::scientific, 1, "3.0e+00"}, |
| 2055 |
{9.99f, chars_format::scientific, 2, "9.99e+00"}, |
| 2056 |
{9.99f, chars_format::scientific, 1, "1.0e+01"}, |
| 2057 |
|
| 2058 |
{2.9f, chars_format::scientific, 1, "2.9e+00"}, |
| 2059 |
{2.9f, chars_format::scientific, 0, "3e+00"}, |
| 2060 |
{9.9f, chars_format::scientific, 1, "9.9e+00"}, |
| 2061 |
{9.9f, chars_format::scientific, 0, "1e+01"}, |
| 2062 |
|
| 2063 |
// Ryu Printf Exponents |
| 2064 |
{9.99e-10f, chars_format::scientific, 2, "9.99e-10"}, |
| 2065 |
{9.99e-09f, chars_format::scientific, 2, "9.99e-09"}, |
| 2066 |
{9.99e-01f, chars_format::scientific, 2, "9.99e-01"}, |
| 2067 |
{9.99e+00f, chars_format::scientific, 2, "9.99e+00"}, |
| 2068 |
{9.99e+01f, chars_format::scientific, 2, "9.99e+01"}, |
| 2069 |
{9.99e+09f, chars_format::scientific, 2, "9.99e+09"}, |
| 2070 |
{9.99e+10f, chars_format::scientific, 2, "9.99e+10"}, |
| 2071 |
|
| 2072 |
{9.99e-10f, chars_format::scientific, 1, "1.0e-09"}, |
| 2073 |
{9.99e-09f, chars_format::scientific, 1, "1.0e-08"}, |
| 2074 |
{9.99e-01f, chars_format::scientific, 1, "1.0e+00"}, |
| 2075 |
{9.99e+00f, chars_format::scientific, 1, "1.0e+01"}, |
| 2076 |
{9.99e+01f, chars_format::scientific, 1, "1.0e+02"}, |
| 2077 |
{9.99e+09f, chars_format::scientific, 1, "1.0e+10"}, |
| 2078 |
{9.99e+10f, chars_format::scientific, 1, "1.0e+11"}, |
| 2079 |
|
| 2080 |
// Ryu Printf AllBinaryExponents |
| 2081 |
// These values test every binary exponent. |
| 2082 |
// The mantissas were randomly generated. |
| 2083 |
{0x0.bafab0p-126f, chars_format::scientific, 107, |
| 2084 |
"8." |
| 2085 |
"5856660078164374052571520381239855817217629811131320365461649230225810169869760102301370352506637573242187" |
| 2086 |
"5e-39"}, |
| 2087 |
{0x1.2c4906p-126f, chars_format::scientific, 111, |
| 2088 |
"1." |
| 2089 |
"3788422360444725799170555395988202383016563601793620435599297375199720136484948795896343654021620750427246" |
| 2090 |
"09375e-38"}, |
| 2091 |
{0x1.da6c8cp-125f, chars_format::scientific, 109, |
| 2092 |
"4." |
| 2093 |
"3568964460614492296234103491671745446178474818057230651136547036595368653788540314053534530103206634521484" |
| 2094 |
"375e-38"}, |
| 2095 |
{0x1.094fd8p-124f, chars_format::scientific, 107, |
| 2096 |
"4." |
| 2097 |
"8730098044956940648689859309723501868625857818278160902221179289536129308757494982273783534765243530273437" |
| 2098 |
"5e-38"}, |
| 2099 |
{0x1.1fba2ap-123f, chars_format::scientific, 109, |
| 2100 |
"1." |
| 2101 |
"0569428191822507939881039060004188252129978601750040353991776209794002661102041429330711252987384796142578" |
| 2102 |
"125e-37"}, |
| 2103 |
{0x1.05c066p-122f, chars_format::scientific, 108, |
| 2104 |
"1." |
| 2105 |
"9230467241438048605749036664954171842721044312192826420869210321670447760844524509593611583113670349121093" |
| 2106 |
"75e-37"}, |
| 2107 |
{0x1.aa97aep-121f, chars_format::scientific, 107, |
| 2108 |
"6." |
| 2109 |
"2682134052278382034317570078635218253248121012038564692208751497667224006349329101794864982366561889648437" |
| 2110 |
"5e-37"}, |
| 2111 |
{0x1.dd39a8p-120f, chars_format::scientific, 105, |
| 2112 |
"1." |
| 2113 |
"402438874646247750851657016594307463985884969771101485328502708228859408023936339304782450199127197265625e" |
| 2114 |
"-36"}, |
| 2115 |
{0x1.d47ee4p-119f, chars_format::scientific, 105, |
| 2116 |
"2." |
| 2117 |
"753570046800320919541684228734204622774621916697559471583583415484064449429979504202492535114288330078125e" |
| 2118 |
"-36"}, |
| 2119 |
{0x1.3d3c36p-118f, chars_format::scientific, 105, |
| 2120 |
"3." |
| 2121 |
"729081842766376549743290774072513136892856721536744273788293430570150999159295679419301450252532958984375e" |
| 2122 |
"-36"}, |
| 2123 |
{0x1.1661f4p-117f, chars_format::scientific, 103, |
| 2124 |
"6." |
| 2125 |
"5447441644065192772010189083715139205202243608571574700187600294454259852727773250080645084381103515625e-" |
| 2126 |
"36"}, |
| 2127 |
{0x1.b68df4p-116f, chars_format::scientific, 103, |
| 2128 |
"2." |
| 2129 |
"0620733697737581832019236718658803118114911610758483179403903647053386549714559805579483509063720703125e-" |
| 2130 |
"35"}, |
| 2131 |
{0x1.d99cbcp-115f, chars_format::scientific, 102, |
| 2132 |
"4.453828135148790991673442414370889923378622963993538561236896870798585013062620419077575206756591796875e-" |
| 2133 |
"35"}, |
| 2134 |
{0x1.fd046ep-114f, chars_format::scientific, 102, |
| 2135 |
"9.573551435136219346253356313052326716805272442482100391194957227092299234527672524563968181610107421875e-" |
| 2136 |
"35"}, |
| 2137 |
{0x1.89834cp-113f, chars_format::scientific, 101, |
| 2138 |
"1.48023092977964777039833097802364118989950189925000614428441357561805347131667076610028743743896484375e-" |
| 2139 |
"34"}, |
| 2140 |
{0x1.44f9f6p-112f, chars_format::scientific, 101, |
| 2141 |
"2.44485077761403269855863218622241304191185681346184344636825701291282797456005937419831752777099609375e-" |
| 2142 |
"34"}, |
| 2143 |
{0x1.610156p-111f, chars_format::scientific, 100, |
| 2144 |
"5.3114321941046389584918230189833796378476189953948627677188069895475308612731168977916240692138671875e-" |
| 2145 |
"34"}, |
| 2146 |
{0x1.1c4ce0p-110f, chars_format::scientific, 95, |
| 2147 |
"8.55535074104030543315341178235051098966105705542347053919882693406862017582170665264129638671875e-34"}, |
| 2148 |
{0x1.c8846ap-109f, chars_format::scientific, 99, |
| 2149 |
"2.747563210400574676694231398741237029228255561600948508123483382536988983702030964195728302001953125e-" |
| 2150 |
"33"}, |
| 2151 |
{0x1.49aaa6p-108f, chars_format::scientific, 98, |
| 2152 |
"3.96821729911656973098277999199730227135040686156682094762847279323381144422455690801143646240234375e-33"}, |
| 2153 |
{0x1.f5603cp-107f, chars_format::scientific, 97, |
| 2154 |
"1.2070186113858457615715036175854047096256968023404067681496332209434285687166266143321990966796875e-32"}, |
| 2155 |
{0x1.b7bbf8p-106f, chars_format::scientific, 95, |
| 2156 |
"2.11724341322508937840915176712265363597160619557838059749677039889093066449277102947235107421875e-32"}, |
| 2157 |
{0x1.6d305cp-105f, chars_format::scientific, 95, |
| 2158 |
"3.51664122601460292174574136500884378151845989294218826175242309517443572985939681529998779296875e-32"}, |
| 2159 |
{0x1.dd9944p-104f, chars_format::scientific, 94, |
| 2160 |
"9.1982162588143308372426801228237163172804681524337790977929874003393706516362726688385009765625e-32"}, |
| 2161 |
{0x1.0f4254p-103f, chars_format::scientific, 94, |
| 2162 |
"1.0448520245617299544506055022011322932281191403904399041258077573957052663899958133697509765625e-31"}, |
| 2163 |
{0x1.049450p-102f, chars_format::scientific, 91, |
| 2164 |
"2.0074302591139273483884727591728498336691676235299559849512007758676190860569477081298828125e-31"}, |
| 2165 |
{0x1.28d030p-101f, chars_format::scientific, 90, |
| 2166 |
"4.573131937693259427041496124538667251427229422876784281637441154089174233376979827880859375e-31"}, |
| 2167 |
{0x1.28a2bep-100f, chars_format::scientific, 92, |
| 2168 |
"9.14079359487553225693590893672771706036816190371857397678478918123801122419536113739013671875e-31"}, |
| 2169 |
{0x1.e674d2p-99f, chars_format::scientific, 92, |
| 2170 |
"2.99801859623548450508972193909865244412972328427583780519061207314734929241240024566650390625e-30"}, |
| 2171 |
{0x1.227314p-98f, chars_format::scientific, 90, |
| 2172 |
"3.580066786954745677669456497979475880433682721056161402106710056614247150719165802001953125e-30"}, |
| 2173 |
{0x1.735b6cp-97f, chars_format::scientific, 89, |
| 2174 |
"9.15465972623783196037990815292079067038371088262625752118850641636527143418788909912109375e-30"}, |
| 2175 |
{0x1.ef60b4p-96f, chars_format::scientific, 89, |
| 2176 |
"2.44240085996903849216356078751341022854748745722804070812372856380534358322620391845703125e-29"}, |
| 2177 |
{0x1.f58d34p-95f, chars_format::scientific, 88, |
| 2178 |
"4.9456803654801575096422210377919300096339643075561698370989915929385460913181304931640625e-29"}, |
| 2179 |
{0x1.a9fa8ap-94f, chars_format::scientific, 88, |
| 2180 |
"8.4009479452815486408032573050798399509585053673323129519445728874416090548038482666015625e-29"}, |
| 2181 |
{0x1.2ebd9ap-93f, chars_format::scientific, 88, |
| 2182 |
"1.1941012414974986903540736041200443068748917913209084407100135649670846760272979736328125e-28"}, |
| 2183 |
{0x1.1c25bep-92f, chars_format::scientific, 87, |
| 2184 |
"2.241527991772840369420073304083191365256388471842441401093992681126110255718231201171875e-28"}, |
| 2185 |
{0x1.80d526p-91f, chars_format::scientific, 86, |
| 2186 |
"6.07158803876554990450680694292368438689814417845436178566842500003986060619354248046875e-28"}, |
| 2187 |
{0x1.16cdd0p-90f, chars_format::scientific, 82, |
| 2188 |
"8.7975016152851199468348749874043115366058394333226289063532021827995777130126953125e-28"}, |
| 2189 |
{0x1.be00c0p-89f, chars_format::scientific, 80, |
| 2190 |
"2.81467419875603623917323685831723008277625852624481694874702952802181243896484375e-27"}, |
| 2191 |
{0x1.dbe376p-88f, chars_format::scientific, 84, |
| 2192 |
"6.006557569745856595501482055708847377292216272726133041715002036653459072113037109375e-27"}, |
| 2193 |
{0x1.75b358p-87f, chars_format::scientific, 81, |
| 2194 |
"9.433528423839338263891493367075328273989136274035871565502020530402660369873046875e-27"}, |
| 2195 |
{0x1.5e56fap-86f, chars_format::scientific, 83, |
| 2196 |
"1.76876373794073549186243776242822499413496518949617808402763330377638339996337890625e-26"}, |
| 2197 |
{0x1.1542e6p-85f, chars_format::scientific, 82, |
| 2198 |
"2.7996239036498255213653797353262236131499034186287389047720353119075298309326171875e-26"}, |
| 2199 |
{0x1.37b7a6p-84f, chars_format::scientific, 81, |
| 2200 |
"6.295082290272475030989309944874260889838800403506269276476814411580562591552734375e-26"}, |
| 2201 |
{0x1.31f62ap-83f, chars_format::scientific, 81, |
| 2202 |
"1.235768973696664669858567539321145118649987459935601918914471752941608428955078125e-25"}, |
| 2203 |
{0x1.ac3560p-82f, chars_format::scientific, 76, |
| 2204 |
"3.4590406845628797200186450581230516131137076030199750675819814205169677734375e-25"}, |
| 2205 |
{0x1.a7db5cp-81f, chars_format::scientific, 78, |
| 2206 |
"6.847777099176331341674240101847394713956151957034990118700079619884490966796875e-25"}, |
| 2207 |
{0x1.40189cp-80f, chars_format::scientific, 78, |
| 2208 |
"1.034286379672715366987641733210033664035198963659922810620628297328948974609375e-24"}, |
| 2209 |
{0x1.aad1eep-79f, chars_format::scientific, 78, |
| 2210 |
"2.758259846499093682487211692864773559218105614121441249153576791286468505859375e-24"}, |
| 2211 |
{0x1.49824cp-78f, chars_format::scientific, 76, |
| 2212 |
"4.2588036474940459085811637121780459484809977510622047702781856060028076171875e-24"}, |
| 2213 |
{0x1.955292p-77f, chars_format::scientific, 77, |
| 2214 |
"1.04773420985315373838626628182169411331037256474019159213639795780181884765625e-23"}, |
| 2215 |
{0x1.d8ca0cp-76f, chars_format::scientific, 75, |
| 2216 |
"2.444263111177596802332967266437459101513507420122550684027373790740966796875e-23"}, |
| 2217 |
{0x1.28b5aap-75f, chars_format::scientific, 75, |
| 2218 |
"3.067905619497844072028707730390270809472941238027487997896969318389892578125e-23"}, |
| 2219 |
{0x1.e5fda8p-74f, chars_format::scientific, 73, |
| 2220 |
"1.0050055115902033206854316793794380802129495577901252545416355133056640625e-22"}, |
| 2221 |
{0x1.fd929cp-73f, chars_format::scientific, 73, |
| 2222 |
"2.1075432611470358337541921610390309449467594049565377645194530487060546875e-22"}, |
| 2223 |
{0x1.c0b84cp-72f, chars_format::scientific, 72, |
| 2224 |
"3.711724097438896357340602997067040280665395357573288492858409881591796875e-22"}, |
| 2225 |
{0x1.5cfeaep-71f, chars_format::scientific, 72, |
| 2226 |
"5.773635352424624465965559338086719731730767080080113373696804046630859375e-22"}, |
| 2227 |
{0x1.bcce4ap-70f, chars_format::scientific, 72, |
| 2228 |
"1.471738991536079335112024613790339400143380998997599817812442779541015625e-21"}, |
| 2229 |
{0x1.edf106p-69f, chars_format::scientific, 71, |
| 2230 |
"3.26863064574260634910627773444362353938430487687583081424236297607421875e-21"}, |
| 2231 |
{0x1.30b422p-68f, chars_format::scientific, 70, |
| 2232 |
"4.0327191475944672156035895296995186232180685692583210766315460205078125e-21"}, |
| 2233 |
{0x1.7aa8d8p-67f, chars_format::scientific, 68, |
| 2234 |
"1.00230347240102665385544432156972316505516573670320212841033935546875e-20"}, |
| 2235 |
{0x1.4ad4e0p-66f, chars_format::scientific, 65, |
| 2236 |
"1.75140760553442509348562143578487138029231573455035686492919921875e-20"}, |
| 2237 |
{0x1.dde636p-65f, chars_format::scientific, 68, |
| 2238 |
"5.05995524921864861016965251964971894693690046551637351512908935546875e-20"}, |
| 2239 |
{0x1.5df870p-64f, chars_format::scientific, 64, |
| 2240 |
"7.4109127331368847396687003781234892585416673682630062103271484375e-20"}, |
| 2241 |
{0x1.c346fap-63f, chars_format::scientific, 67, |
| 2242 |
"1.9112335047873604296656620434025075638828639057464897632598876953125e-19"}, |
| 2243 |
{0x1.58d2eap-62f, chars_format::scientific, 66, |
| 2244 |
"2.920771899491385068938311721231659845443573431111872196197509765625e-19"}, |
| 2245 |
{0x1.0d4824p-61f, chars_format::scientific, 64, |
| 2246 |
"4.5618111223383324851561766710705825289551285095512866973876953125e-19"}, |
| 2247 |
{0x1.04585cp-60f, chars_format::scientific, 63, |
| 2248 |
"8.820836917354691955064048547452415505176759324967861175537109375e-19"}, |
| 2249 |
{0x1.55cf7ap-59f, chars_format::scientific, 64, |
| 2250 |
"2.3161977389916240139687737820128887733517331071197986602783203125e-18"}, |
| 2251 |
{0x1.1fd8ecp-58f, chars_format::scientific, 62, |
| 2252 |
"3.90105904223582084021197668999292318403604440391063690185546875e-18"}, |
| 2253 |
{0x1.0bc866p-57f, chars_format::scientific, 62, |
| 2254 |
"7.25826751123333980988787395016714754092390649020671844482421875e-18"}, |
| 2255 |
{0x1.4dfa86p-56f, chars_format::scientific, 62, |
| 2256 |
"1.81050165732891247031242920595417444928898476064205169677734375e-17"}, |
| 2257 |
{0x1.335daep-55f, chars_format::scientific, 61, |
| 2258 |
"3.3324681586205479543426333233213654239079914987087249755859375e-17"}, |
| 2259 |
{0x1.5bc756p-54f, chars_format::scientific, 60, |
| 2260 |
"7.541247487712833172911197632259927559061907231807708740234375e-17"}, |
| 2261 |
{0x1.9eb052p-53f, chars_format::scientific, 60, |
| 2262 |
"1.798425779915148827771409489884035792783834040164947509765625e-16"}, |
| 2263 |
{0x1.13b6d2p-52f, chars_format::scientific, 59, |
| 2264 |
"2.39143897259270284301468922905087310937233269214630126953125e-16"}, |
| 2265 |
{0x1.260438p-51f, chars_format::scientific, 56, "5.10037289299151118393549353413618518970906734466552734375e-16"}, |
| 2266 |
{0x1.9e6b44p-50f, chars_format::scientific, 57, "1.437804758404521467129999479084290214814245700836181640625e-15"}, |
| 2267 |
{0x1.89c0bcp-49f, chars_format::scientific, 56, "2.73220937993773164975674916377101908437907695770263671875e-15"}, |
| 2268 |
{0x1.e30610p-48f, chars_format::scientific, 53, "6.70330015995791728133923470522859133780002593994140625e-15"}, |
| 2269 |
{0x1.48b6e8p-47f, chars_format::scientific, 53, "9.12365953728740131101204724473063834011554718017578125e-15"}, |
| 2270 |
{0x1.41382ep-46f, chars_format::scientific, 55, "1.7831261573081173821275768887062440626323223114013671875e-14"}, |
| 2271 |
{0x1.383b8ep-45f, chars_format::scientific, 54, "3.466478609693256218715617933412431739270687103271484375e-14"}, |
| 2272 |
{0x1.1e6564p-44f, chars_format::scientific, 52, "6.3592699357274684590635160930105485022068023681640625e-14"}, |
| 2273 |
{0x1.c35e62p-43f, chars_format::scientific, 53, "2.00447961722950707130763703389675356447696685791015625e-13"}, |
| 2274 |
{0x1.2a2f4ep-42f, chars_format::scientific, 52, "2.6484129017449731247069166784058324992656707763671875e-13"}, |
| 2275 |
{0x1.69fae2p-41f, chars_format::scientific, 51, "6.430056682417417679431537180789746344089508056640625e-13"}, |
| 2276 |
{0x1.4ccefep-40f, chars_format::scientific, 51, "1.182373535017766652543969030375592410564422607421875e-12"}, |
| 2277 |
{0x1.aa9bf6p-39f, chars_format::scientific, 50, "3.03124083993189241681420753593556582927703857421875e-12"}, |
| 2278 |
{0x1.3b9744p-38f, chars_format::scientific, 48, "4.484816164274096905728583806194365024566650390625e-12"}, |
| 2279 |
{0x1.b2fc6ap-37f, chars_format::scientific, 49, "1.2363045483188006556929394719190895557403564453125e-11"}, |
| 2280 |
{0x1.7bc418p-36f, chars_format::scientific, 46, "2.1587197307493255493682227097451686859130859375e-11"}, |
| 2281 |
{0x1.f4a74cp-35f, chars_format::scientific, 46, "5.6917713597837149563929415307939052581787109375e-11"}, |
| 2282 |
{0x1.89f248p-34f, chars_format::scientific, 44, "8.95730434269381703416001982986927032470703125e-11"}, |
| 2283 |
{0x1.60ac54p-33f, chars_format::scientific, 45, "1.603771837555001411601551808416843414306640625e-10"}, |
| 2284 |
{0x1.2f6d0ep-32f, chars_format::scientific, 45, "2.759643347172158200919511727988719940185546875e-10"}, |
| 2285 |
{0x1.748684p-31f, chars_format::scientific, 43, "6.7761984912095840627443976700305938720703125e-10"}, |
| 2286 |
{0x1.b4fa00p-30f, chars_format::scientific, 36, "1.589711473570787347853183746337890625e-09"}, |
| 2287 |
{0x1.c204d8p-29f, chars_format::scientific, 41, "3.27431859403759517590515315532684326171875e-09"}, |
| 2288 |
{0x1.50029ep-28f, chars_format::scientific, 42, "4.889592286616561978007666766643524169921875e-09"}, |
| 2289 |
{0x1.56cf38p-27f, chars_format::scientific, 39, "9.977068060607052757404744625091552734375e-09"}, |
| 2290 |
{0x1.0b5a5cp-26f, chars_format::scientific, 40, "1.5561990807100301026366651058197021484375e-08"}, |
| 2291 |
{0x1.fc8250p-25f, chars_format::scientific, 37, "5.9198242752245278097689151763916015625e-08"}, |
| 2292 |
{0x1.c66674p-24f, chars_format::scientific, 39, "1.057982927932243910618126392364501953125e-07"}, |
| 2293 |
{0x1.4da57ep-23f, chars_format::scientific, 39, "1.553662372089092968963086605072021484375e-07"}, |
| 2294 |
{0x1.4fcdacp-22f, chars_format::scientific, 37, "3.1274129241865011863410472869873046875e-07"}, |
| 2295 |
{0x1.5eaff4p-21f, chars_format::scientific, 36, "6.532060297104180790483951568603515625e-07"}, |
| 2296 |
{0x1.d2f696p-20f, chars_format::scientific, 37, "1.7395735767422593198716640472412109375e-06"}, |
| 2297 |
{0x1.e4400cp-19f, chars_format::scientific, 35, "3.60794501830241642892360687255859375e-06"}, |
| 2298 |
{0x1.03e624p-18f, chars_format::scientific, 34, "3.8727966966689564287662506103515625e-06"}, |
| 2299 |
{0x1.bdb65ep-17f, chars_format::scientific, 35, "1.32832637973478995263576507568359375e-05"}, |
| 2300 |
{0x1.57fb84p-16f, chars_format::scientific, 33, "2.050295370281673967838287353515625e-05"}, |
| 2301 |
{0x1.fd2d62p-15f, chars_format::scientific, 33, "6.069866140023805201053619384765625e-05"}, |
| 2302 |
{0x1.ca0c58p-14f, chars_format::scientific, 31, "1.0920720524154603481292724609375e-04"}, |
| 2303 |
{0x1.988f70p-13f, chars_format::scientific, 29, "1.94816733710467815399169921875e-04"}, |
| 2304 |
{0x1.032dd6p-12f, chars_format::scientific, 31, "2.4717240012250840663909912109375e-04"}, |
| 2305 |
{0x1.571b08p-11f, chars_format::scientific, 28, "6.5442197956144809722900390625e-04"}, |
| 2306 |
{0x1.53bedap-10f, chars_format::scientific, 30, "1.296026282943785190582275390625e-03"}, |
| 2307 |
{0x1.ab2f36p-9f, chars_format::scientific, 29, "3.25915846042335033416748046875e-03"}, |
| 2308 |
{0x1.7293dap-8f, chars_format::scientific, 28, "5.6545645929872989654541015625e-03"}, |
| 2309 |
{0x1.825eb6p-7f, chars_format::scientific, 28, "1.1791075579822063446044921875e-02"}, |
| 2310 |
{0x1.f45aa0p-6f, chars_format::scientific, 23, "3.05391848087310791015625e-02"}, |
| 2311 |
{0x1.854d96p-5f, chars_format::scientific, 26, "4.75223474204540252685546875e-02"}, |
| 2312 |
{0x1.5650cep-4f, chars_format::scientific, 25, "8.3573155105113983154296875e-02"}, |
| 2313 |
{0x1.03acdap-3f, chars_format::scientific, 25, "1.2679453194141387939453125e-01"}, |
| 2314 |
{0x1.6b9416p-2f, chars_format::scientific, 24, "3.550570905208587646484375e-01"}, |
| 2315 |
{0x1.a8544ap-1f, chars_format::scientific, 23, "8.28768074512481689453125e-01"}, |
| 2316 |
{0x1.0693f6p+0f, chars_format::scientific, 23, "1.02569520473480224609375e+00"}, |
| 2317 |
{0x1.b9476ep+1f, chars_format::scientific, 22, "3.4474923610687255859375e+00"}, |
| 2318 |
{0x1.3cb752p+2f, chars_format::scientific, 21, "4.948688983917236328125e+00"}, |
| 2319 |
{0x1.bb8a64p+3f, chars_format::scientific, 20, "1.38606433868408203125e+01"}, |
| 2320 |
{0x1.1de906p+4f, chars_format::scientific, 20, "1.78693904876708984375e+01"}, |
| 2321 |
{0x1.d8e834p+5f, chars_format::scientific, 18, "5.911338043212890625e+01"}, |
| 2322 |
{0x1.27cd38p+6f, chars_format::scientific, 16, "7.3950408935546875e+01"}, |
| 2323 |
{0x1.3cdcd6p+7f, chars_format::scientific, 18, "1.584313201904296875e+02"}, |
| 2324 |
{0x1.392656p+8f, chars_format::scientific, 17, "3.13149749755859375e+02"}, |
| 2325 |
{0x1.c96aa8p+9f, chars_format::scientific, 14, "9.14833251953125e+02"}, |
| 2326 |
{0x1.28b6b2p+10f, chars_format::scientific, 16, "1.1868546142578125e+03"}, |
| 2327 |
{0x1.786090p+11f, chars_format::scientific, 12, "3.011017578125e+03"}, |
| 2328 |
{0x1.79c6f6p+12f, chars_format::scientific, 14, "6.04443505859375e+03"}, |
| 2329 |
{0x1.ef1840p+13f, chars_format::scientific, 9, "1.584303125e+04"}, |
| 2330 |
{0x1.539fd0p+14f, chars_format::scientific, 10, "2.1735953125e+04"}, |
| 2331 |
{0x1.b31804p+15f, chars_format::scientific, 11, "5.56920078125e+04"}, |
| 2332 |
{0x1.ad4a9cp+16f, chars_format::scientific, 11, "1.09898609375e+05"}, |
| 2333 |
{0x1.4c43a6p+17f, chars_format::scientific, 11, "1.70119296875e+05"}, |
| 2334 |
{0x1.5598c6p+18f, chars_format::scientific, 10, "3.4979509375e+05"}, |
| 2335 |
{0x1.73695ep+19f, chars_format::scientific, 9, "7.606509375e+05"}, |
| 2336 |
{0x1.234f2ap+20f, chars_format::scientific, 9, "1.193202625e+06"}, |
| 2337 |
{0x1.0a4cc8p+21f, chars_format::scientific, 6, "2.181529e+06"}, |
| 2338 |
{0x1.90abd2p+22f, chars_format::scientific, 7, "6.5645965e+06"}, |
| 2339 |
{0x1.62dde8p+23f, chars_format::scientific, 7, "1.1628276e+07"}, |
| 2340 |
{0x1.9e3a8cp+24f, chars_format::scientific, 7, "2.7146892e+07"}, |
| 2341 |
{0x1.53a3eap+25f, chars_format::scientific, 7, "4.4517332e+07"}, |
| 2342 |
{0x1.41a1cep+26f, chars_format::scientific, 7, "8.4313912e+07"}, |
| 2343 |
{0x1.8fdda4p+27f, chars_format::scientific, 8, "2.09644832e+08"}, |
| 2344 |
{0x1.d0322ap+28f, chars_format::scientific, 8, "4.86744736e+08"}, |
| 2345 |
{0x1.cdb764p+29f, chars_format::scientific, 8, "9.68289408e+08"}, |
| 2346 |
{0x1.7620d8p+30f, chars_format::scientific, 9, "1.569207808e+09"}, |
| 2347 |
{0x1.c18df6p+31f, chars_format::scientific, 9, "3.771136768e+09"}, |
| 2348 |
{0x1.240cf8p+32f, chars_format::scientific, 9, "4.899796992e+09"}, |
| 2349 |
{0x1.81669ap+33f, chars_format::scientific, 10, "1.2931904512e+10"}, |
| 2350 |
{0x1.3be30cp+34f, chars_format::scientific, 10, "2.1198811136e+10"}, |
| 2351 |
{0x1.d1e6e4p+35f, chars_format::scientific, 10, "6.2532296704e+10"}, |
| 2352 |
{0x1.06b274p+36f, chars_format::scientific, 10, "7.0517211136e+10"}, |
| 2353 |
{0x1.a74284p+37f, chars_format::scientific, 11, "2.27235889152e+11"}, |
| 2354 |
{0x1.9fd3e6p+38f, chars_format::scientific, 11, "4.46491623424e+11"}, |
| 2355 |
{0x1.e2cec4p+39f, chars_format::scientific, 12, "1.036821594112e+12"}, |
| 2356 |
{0x1.3d5d32p+40f, chars_format::scientific, 11, "1.36306819072e+12"}, |
| 2357 |
{0x1.accccap+41f, chars_format::scientific, 12, "3.683363586048e+12"}, |
| 2358 |
{0x1.a120ccp+42f, chars_format::scientific, 12, "7.166206410752e+12"}, |
| 2359 |
{0x1.55a028p+43f, chars_format::scientific, 13, "1.1738166591488e+13"}, |
| 2360 |
{0x1.035296p+44f, chars_format::scientific, 13, "1.7820513468416e+13"}, |
| 2361 |
{0x1.22d1aap+45f, chars_format::scientific, 13, "3.9969859043328e+13"}, |
| 2362 |
{0x1.eb8eaep+46f, chars_format::scientific, 14, "1.35118253457408e+14"}, |
| 2363 |
{0x1.490d0ep+47f, chars_format::scientific, 14, "1.80897697497088e+14"}, |
| 2364 |
{0x1.9da088p+48f, chars_format::scientific, 14, "4.54787778740224e+14"}, |
| 2365 |
{0x1.e7fab4p+49f, chars_format::scientific, 15, "1.073077848899584e+15"}, |
| 2366 |
{0x1.98a534p+50f, chars_format::scientific, 14, "1.79724114460672e+15"}, |
| 2367 |
{0x1.93aeeap+51f, chars_format::scientific, 15, "3.550835489374208e+15"}, |
| 2368 |
{0x1.3df680p+52f, chars_format::scientific, 15, "5.593662327095296e+15"}, |
| 2369 |
{0x1.c763f6p+53f, chars_format::scientific, 15, "1.602262782705664e+16"}, |
| 2370 |
{0x1.8b669ep+54f, chars_format::scientific, 15, "2.782386114789376e+16"}, |
| 2371 |
{0x1.73e5b6p+55f, chars_format::scientific, 16, "5.2339893103230976e+16"}, |
| 2372 |
{0x1.a13d18p+56f, chars_format::scientific, 17, "1.17442238576852992e+17"}, |
| 2373 |
{0x1.a0797ep+57f, chars_format::scientific, 17, "2.34454344768946176e+17"}, |
| 2374 |
{0x1.c07a80p+58f, chars_format::scientific, 17, "5.04941918963105792e+17"}, |
| 2375 |
{0x1.729388p+59f, chars_format::scientific, 17, "8.34463629662224384e+17"}, |
| 2376 |
{0x1.edfb70p+60f, chars_format::scientific, 18, "2.224697951572197376e+18"}, |
| 2377 |
{0x1.3d6782p+61f, chars_format::scientific, 17, "2.85892402114199552e+18"}, |
| 2378 |
{0x1.b121e8p+62f, chars_format::scientific, 18, "7.802620494837972992e+18"}, |
| 2379 |
{0x1.0efc5ap+63f, chars_format::scientific, 18, "9.763290520209063936e+18"}, |
| 2380 |
{0x1.b7dba0p+64f, chars_format::scientific, 19, "3.1695102724410441728e+19"}, |
| 2381 |
{0x1.ec2306p+65f, chars_format::scientific, 19, "7.0924388975830368256e+19"}, |
| 2382 |
{0x1.2e2d28p+66f, chars_format::scientific, 19, "8.7096415015485308928e+19"}, |
| 2383 |
{0x1.e02208p+67f, chars_format::scientific, 20, "2.76777792668052750336e+20"}, |
| 2384 |
{0x1.402636p+68f, chars_format::scientific, 20, "3.69106968238077509632e+20"}, |
| 2385 |
{0x1.11f97cp+69f, chars_format::scientific, 20, "6.31742296991907971072e+20"}, |
| 2386 |
{0x1.74db2ap+70f, chars_format::scientific, 21, "1.719495307615820316672e+21"}, |
| 2387 |
{0x1.94a32ap+71f, chars_format::scientific, 21, "3.732120907777931476992e+21"}, |
| 2388 |
{0x1.c272dcp+72f, chars_format::scientific, 21, "8.309311323384498356224e+21"}, |
| 2389 |
{0x1.36ca40p+73f, chars_format::scientific, 22, "1.1466128622488263852032e+22"}, |
| 2390 |
{0x1.5f6fbep+74f, chars_format::scientific, 22, "2.5931436172223350571008e+22"}, |
| 2391 |
{0x1.95ec4ep+75f, chars_format::scientific, 22, "5.9903671176748022628352e+22"}, |
| 2392 |
{0x1.6b3912p+76f, chars_format::scientific, 23, "1.07204487170660958732288e+23"}, |
| 2393 |
{0x1.10992ap+77f, chars_format::scientific, 23, "1.60913632700346331561984e+23"}, |
| 2394 |
{0x1.74a25ep+78f, chars_format::scientific, 23, "4.39928869395322133020672e+23"}, |
| 2395 |
{0x1.43f462p+79f, chars_format::scientific, 22, "7.6491622058254812577792e+23"}, |
| 2396 |
{0x1.f12ca2p+80f, chars_format::scientific, 24, "2.347839472055691035803648e+24"}, |
| 2397 |
{0x1.2b7f18p+81f, chars_format::scientific, 22, "2.8286640885152838844416e+24"}, |
| 2398 |
{0x1.a40704p+82f, chars_format::scientific, 24, "7.934093352976572433301504e+24"}, |
| 2399 |
{0x1.35d5f8p+83f, chars_format::scientific, 23, "1.17052661598219352932352e+25"}, |
| 2400 |
{0x1.c2c9d2p+84f, chars_format::scientific, 25, "3.4060605519118462894473216e+25"}, |
| 2401 |
{0x1.47bf20p+85f, chars_format::scientific, 23, "4.95276631635027751337984e+25"}, |
| 2402 |
{0x1.60b728p+86f, chars_format::scientific, 25, "1.0660170486011939073818624e+26"}, |
| 2403 |
{0x1.3354c8p+87f, chars_format::scientific, 26, "1.85770297377533474371534848e+26"}, |
| 2404 |
{0x1.e9e512p+88f, chars_format::scientific, 26, "5.92246479757524141957185536e+26"}, |
| 2405 |
{0x1.c4b6cap+89f, chars_format::scientific, 27, "1.094595334815995103451021312e+27"}, |
| 2406 |
{0x1.799cb8p+90f, chars_format::scientific, 27, "1.826020469467809704300249088e+27"}, |
| 2407 |
{0x1.1afa36p+91f, chars_format::scientific, 27, "2.736789351009782551090823168e+27"}, |
| 2408 |
{0x1.80c214p+92f, chars_format::scientific, 27, "7.442304364233212615194574848e+27"}, |
| 2409 |
{0x1.657890p+93f, chars_format::scientific, 28, "1.3828987453168434783077793792e+28"}, |
| 2410 |
{0x1.5ce17cp+94f, chars_format::scientific, 28, "2.6993344325171312829134798848e+28"}, |
| 2411 |
{0x1.3f1e9ap+95f, chars_format::scientific, 28, "4.9381356576017938861904625664e+28"}, |
| 2412 |
{0x1.874612p+96f, chars_format::scientific, 29, "1.21093348650115637567232671744e+29"}, |
| 2413 |
{0x1.5f4d5ep+97f, chars_format::scientific, 29, "2.17445539275703670631001227264e+29"}, |
| 2414 |
{0x1.45b1bep+98f, chars_format::scientific, 29, "4.03190021246562727728269754368e+29"}, |
| 2415 |
{0x1.a570f4p+99f, chars_format::scientific, 30, "1.043437928672039460753056464896e+30"}, |
| 2416 |
{0x1.f5106ep+100f, chars_format::scientific, 30, "2.481149635102733266542145830912e+30"}, |
| 2417 |
{0x1.d84424p+101f, chars_format::scientific, 30, "4.677097651091265616934539886592e+30"}, |
| 2418 |
{0x1.3d6c56p+102f, chars_format::scientific, 30, "6.287213966425746785671183335424e+30"}, |
| 2419 |
{0x1.9d8cf0p+103f, chars_format::scientific, 31, "1.6382424580981433623378525159424e+31"}, |
| 2420 |
{0x1.e2e73ep+104f, chars_format::scientific, 29, "3.82595403225449575379724402688e+31"}, |
| 2421 |
{0x1.2d6594p+105f, chars_format::scientific, 30, "4.775822764761364886543157690368e+31"}, |
| 2422 |
{0x1.ce43bap+106f, chars_format::scientific, 31, "1.4649748574980240963539344293888e+32"}, |
| 2423 |
{0x1.b3ea00p+107f, chars_format::scientific, 32, "2.76293361488025452794185737306112e+32"}, |
| 2424 |
{0x1.03a052p+108f, chars_format::scientific, 32, "3.29115373194929392757058784198656e+32"}, |
| 2425 |
{0x1.6f59e0p+109f, chars_format::scientific, 31, "9.3134561945576656911623262306304e+32"}, |
| 2426 |
{0x1.05adacp+110f, chars_format::scientific, 33, "1.326867152522435745601434087849984e+33"}, |
| 2427 |
{0x1.2cdef0p+111f, chars_format::scientific, 33, "3.051192904788012466473218045116416e+33"}, |
| 2428 |
{0x1.e81552p+112f, chars_format::scientific, 33, "9.899505055765620068271358482579456e+33"}, |
| 2429 |
{0x1.bfa8f4p+113f, chars_format::scientific, 34, "1.8159245876954178992833811110166528e+34"}, |
| 2430 |
{0x1.a14810p+114f, chars_format::scientific, 33, "3.385389673673572296245535418875904e+34"}, |
| 2431 |
{0x1.f18b10p+115f, chars_format::scientific, 34, "8.0731001914916160681187088757948416e+34"}, |
| 2432 |
{0x1.8d6e30p+116f, chars_format::scientific, 32, "1.28973545052908058560090358153216e+35"}, |
| 2433 |
{0x1.9480c2p+117f, chars_format::scientific, 35, "2.62537431192608192877759864086986752e+35"}, |
| 2434 |
{0x1.60975cp+118f, chars_format::scientific, 34, "4.5768960676134050994895233721827328e+35"}, |
| 2435 |
{0x1.ab1bb2p+119f, chars_format::scientific, 36, "1.108836243133298765768030079592431616e+36"}, |
| 2436 |
{0x1.6a0c80p+120f, chars_format::scientific, 36, "1.879864992909653247408339011818749952e+36"}, |
| 2437 |
{0x1.2cac2cp+121f, chars_format::scientific, 36, "3.122362236102854007005843883842076672e+36"}, |
| 2438 |
{0x1.0baaf6p+122f, chars_format::scientific, 36, "5.559243043957593079267046257728684032e+36"}, |
| 2439 |
{0x1.098282p+123f, chars_format::scientific, 35, "1.10288454433706471446366546449924096e+37"}, |
| 2440 |
{0x1.122f8ap+124f, chars_format::scientific, 37, "2.2778456735621461875293910785310326784e+37"}, |
| 2441 |
{0x1.57f4c6p+125f, chars_format::scientific, 36, "5.714951736310127067226390054203031552e+37"}, |
| 2442 |
{0x1.05e028p+126f, chars_format::scientific, 36, "8.702309817313974757087535795024166912e+37"}, |
| 2443 |
{0x1.9d8424p+127f, chars_format::scientific, 38, "2.74828637805621292108186801756142829568e+38"}, |
| 2444 |
|
| 2445 |
// Ryu Printf PrintDecimalPoint |
| 2446 |
// These values exercise each codepath. |
| 2447 |
{0x1.59bc8cp+92f, chars_format::scientific, 0, "7e+27"}, |
| 2448 |
{0x1.59bc8cp+92f, chars_format::scientific, 1, "6.7e+27"}, |
| 2449 |
{0x1.37da7cp-30f, chars_format::scientific, 0, "1e-09"}, |
| 2450 |
{0x1.37da7cp-30f, chars_format::scientific, 1, "1.1e-09"}, |
| 2451 |
{0x1.834c98p+29f, chars_format::scientific, 0, "8e+08"}, |
| 2452 |
{0x1.834c98p+29f, chars_format::scientific, 1, "8.1e+08"}, |
| 2453 |
|
| 2454 |
// Test the maximum mantissa, which generates the most digits for each exponent. |
| 2455 |
{0x0.fffffep-126f, chars_format::scientific, 111, |
| 2456 |
"1." |
| 2457 |
"1754942106924410754870294448492873488270524287458933338571745305715888704756189042655023513361811637878417" |
| 2458 |
"96875e-38"}, |
| 2459 |
{0x1.fffffep-126f, chars_format::scientific, 111, |
| 2460 |
"2." |
| 2461 |
"3509885615147285834557659820715330266457179855179808553659262368500061299303460771170648513361811637878417" |
| 2462 |
"96875e-38"}, |
| 2463 |
{0x1.fffffep-125f, chars_format::scientific, 110, |
| 2464 |
"4." |
| 2465 |
"7019771230294571669115319641430660532914359710359617107318524737000122598606921542341297026723623275756835" |
| 2466 |
"9375e-38"}, |
| 2467 |
{0x1.fffffep-124f, chars_format::scientific, 109, |
| 2468 |
"9." |
| 2469 |
"4039542460589143338230639282861321065828719420719234214637049474000245197213843084682594053447246551513671" |
| 2470 |
"875e-38"}, |
| 2471 |
{0x1.fffffep-123f, chars_format::scientific, 109, |
| 2472 |
"1." |
| 2473 |
"8807908492117828667646127856572264213165743884143846842927409894800049039442768616936518810689449310302734" |
| 2474 |
"375e-37"}, |
| 2475 |
{0x1.fffffep-122f, chars_format::scientific, 108, |
| 2476 |
"3." |
| 2477 |
"7615816984235657335292255713144528426331487768287693685854819789600098078885537233873037621378898620605468" |
| 2478 |
"75e-37"}, |
| 2479 |
{0x1.fffffep-121f, chars_format::scientific, 107, |
| 2480 |
"7." |
| 2481 |
"5231633968471314670584511426289056852662975536575387371709639579200196157771074467746075242757797241210937" |
| 2482 |
"5e-37"}, |
| 2483 |
{0x1.fffffep-120f, chars_format::scientific, 107, |
| 2484 |
"1." |
| 2485 |
"5046326793694262934116902285257811370532595107315077474341927915840039231554214893549215048551559448242187" |
| 2486 |
"5e-36"}, |
| 2487 |
{0x1.fffffep-119f, chars_format::scientific, 106, |
| 2488 |
"3." |
| 2489 |
"0092653587388525868233804570515622741065190214630154948683855831680078463108429787098430097103118896484375" |
| 2490 |
"e-36"}, |
| 2491 |
{0x1.fffffep-118f, chars_format::scientific, 105, |
| 2492 |
"6." |
| 2493 |
"018530717477705173646760914103124548213038042926030989736771166336015692621685957419686019420623779296875e" |
| 2494 |
"-36"}, |
| 2495 |
{0x1.fffffep-117f, chars_format::scientific, 105, |
| 2496 |
"1." |
| 2497 |
"203706143495541034729352182820624909642607608585206197947354233267203138524337191483937203884124755859375e" |
| 2498 |
"-35"}, |
| 2499 |
{0x1.fffffep-116f, chars_format::scientific, 104, |
| 2500 |
"2." |
| 2501 |
"40741228699108206945870436564124981928521521717041239589470846653440627704867438296787440776824951171875e-" |
| 2502 |
"35"}, |
| 2503 |
{0x1.fffffep-115f, chars_format::scientific, 103, |
| 2504 |
"4." |
| 2505 |
"8148245739821641389174087312824996385704304343408247917894169330688125540973487659357488155364990234375e-" |
| 2506 |
"35"}, |
| 2507 |
{0x1.fffffep-114f, chars_format::scientific, 102, |
| 2508 |
"9.629649147964328277834817462564999277140860868681649583578833866137625108194697531871497631072998046875e-" |
| 2509 |
"35"}, |
| 2510 |
{0x1.fffffep-113f, chars_format::scientific, 102, |
| 2511 |
"1.925929829592865655566963492512999855428172173736329916715766773227525021638939506374299526214599609375e-" |
| 2512 |
"34"}, |
| 2513 |
{0x1.fffffep-112f, chars_format::scientific, 101, |
| 2514 |
"3.85185965918573131113392698502599971085634434747265983343153354645505004327787901274859905242919921875e-" |
| 2515 |
"34"}, |
| 2516 |
{0x1.fffffep-111f, chars_format::scientific, 100, |
| 2517 |
"7.7037193183714626222678539700519994217126886949453196668630670929101000865557580254971981048583984375e-" |
| 2518 |
"34"}, |
| 2519 |
{0x1.fffffep-110f, chars_format::scientific, 100, |
| 2520 |
"1.5407438636742925244535707940103998843425377389890639333726134185820200173111516050994396209716796875e-" |
| 2521 |
"33"}, |
| 2522 |
{0x1.fffffep-109f, chars_format::scientific, 99, |
| 2523 |
"3.081487727348585048907141588020799768685075477978127866745226837164040034622303210198879241943359375e-" |
| 2524 |
"33"}, |
| 2525 |
{0x1.fffffep-108f, chars_format::scientific, 98, |
| 2526 |
"6.16297545469717009781428317604159953737015095595625573349045367432808006924460642039775848388671875e-33"}, |
| 2527 |
{0x1.fffffep-107f, chars_format::scientific, 98, |
| 2528 |
"1.23259509093943401956285663520831990747403019119125114669809073486561601384892128407955169677734375e-32"}, |
| 2529 |
{0x1.fffffep-106f, chars_format::scientific, 97, |
| 2530 |
"2.4651901818788680391257132704166398149480603823825022933961814697312320276978425681591033935546875e-32"}, |
| 2531 |
{0x1.fffffep-105f, chars_format::scientific, 96, |
| 2532 |
"4.930380363757736078251426540833279629896120764765004586792362939462464055395685136318206787109375e-32"}, |
| 2533 |
{0x1.fffffep-104f, chars_format::scientific, 95, |
| 2534 |
"9.86076072751547215650285308166655925979224152953000917358472587892492811079137027263641357421875e-32"}, |
| 2535 |
{0x1.fffffep-103f, chars_format::scientific, 95, |
| 2536 |
"1.97215214550309443130057061633331185195844830590600183471694517578498562215827405452728271484375e-31"}, |
| 2537 |
{0x1.fffffep-102f, chars_format::scientific, 94, |
| 2538 |
"3.9443042910061888626011412326666237039168966118120036694338903515699712443165481090545654296875e-31"}, |
| 2539 |
{0x1.fffffep-101f, chars_format::scientific, 93, |
| 2540 |
"7.888608582012377725202282465333247407833793223624007338867780703139942488633096218109130859375e-31"}, |
| 2541 |
{0x1.fffffep-100f, chars_format::scientific, 93, |
| 2542 |
"1.577721716402475545040456493066649481566758644724801467773556140627988497726619243621826171875e-30"}, |
| 2543 |
{0x1.fffffep-99f, chars_format::scientific, 92, |
| 2544 |
"3.15544343280495109008091298613329896313351728944960293554711228125597699545323848724365234375e-30"}, |
| 2545 |
{0x1.fffffep-98f, chars_format::scientific, 91, |
| 2546 |
"6.3108868656099021801618259722665979262670345788992058710942245625119539909064769744873046875e-30"}, |
| 2547 |
{0x1.fffffep-97f, chars_format::scientific, 91, |
| 2548 |
"1.2621773731219804360323651944533195852534069157798411742188449125023907981812953948974609375e-29"}, |
| 2549 |
{0x1.fffffep-96f, chars_format::scientific, 90, |
| 2550 |
"2.524354746243960872064730388906639170506813831559682348437689825004781596362590789794921875e-29"}, |
| 2551 |
{0x1.fffffep-95f, chars_format::scientific, 89, |
| 2552 |
"5.04870949248792174412946077781327834101362766311936469687537965000956319272518157958984375e-29"}, |
| 2553 |
{0x1.fffffep-94f, chars_format::scientific, 89, |
| 2554 |
"1.00974189849758434882589215556265566820272553262387293937507593000191263854503631591796875e-28"}, |
| 2555 |
{0x1.fffffep-93f, chars_format::scientific, 88, |
| 2556 |
"2.0194837969951686976517843111253113364054510652477458787501518600038252770900726318359375e-28"}, |
| 2557 |
{0x1.fffffep-92f, chars_format::scientific, 87, |
| 2558 |
"4.038967593990337395303568622250622672810902130495491757500303720007650554180145263671875e-28"}, |
| 2559 |
{0x1.fffffep-91f, chars_format::scientific, 86, |
| 2560 |
"8.07793518798067479060713724450124534562180426099098351500060744001530110836029052734375e-28"}, |
| 2561 |
{0x1.fffffep-90f, chars_format::scientific, 86, |
| 2562 |
"1.61558703759613495812142744890024906912436085219819670300012148800306022167205810546875e-27"}, |
| 2563 |
{0x1.fffffep-89f, chars_format::scientific, 85, |
| 2564 |
"3.2311740751922699162428548978004981382487217043963934060002429760061204433441162109375e-27"}, |
| 2565 |
{0x1.fffffep-88f, chars_format::scientific, 84, |
| 2566 |
"6.462348150384539832485709795600996276497443408792786812000485952012240886688232421875e-27"}, |
| 2567 |
{0x1.fffffep-87f, chars_format::scientific, 84, |
| 2568 |
"1.292469630076907966497141959120199255299488681758557362400097190402448177337646484375e-26"}, |
| 2569 |
{0x1.fffffep-86f, chars_format::scientific, 83, |
| 2570 |
"2.58493926015381593299428391824039851059897736351711472480019438080489635467529296875e-26"}, |
| 2571 |
{0x1.fffffep-85f, chars_format::scientific, 82, |
| 2572 |
"5.1698785203076318659885678364807970211979547270342294496003887616097927093505859375e-26"}, |
| 2573 |
{0x1.fffffep-84f, chars_format::scientific, 82, |
| 2574 |
"1.0339757040615263731977135672961594042395909454068458899200777523219585418701171875e-25"}, |
| 2575 |
{0x1.fffffep-83f, chars_format::scientific, 81, |
| 2576 |
"2.067951408123052746395427134592318808479181890813691779840155504643917083740234375e-25"}, |
| 2577 |
{0x1.fffffep-82f, chars_format::scientific, 80, |
| 2578 |
"4.13590281624610549279085426918463761695836378162738355968031100928783416748046875e-25"}, |
| 2579 |
{0x1.fffffep-81f, chars_format::scientific, 79, |
| 2580 |
"8.2718056324922109855817085383692752339167275632547671193606220185756683349609375e-25"}, |
| 2581 |
{0x1.fffffep-80f, chars_format::scientific, 79, |
| 2582 |
"1.6543611264984421971163417076738550467833455126509534238721244037151336669921875e-24"}, |
| 2583 |
{0x1.fffffep-79f, chars_format::scientific, 78, |
| 2584 |
"3.308722252996884394232683415347710093566691025301906847744248807430267333984375e-24"}, |
| 2585 |
{0x1.fffffep-78f, chars_format::scientific, 77, |
| 2586 |
"6.61744450599376878846536683069542018713338205060381369548849761486053466796875e-24"}, |
| 2587 |
{0x1.fffffep-77f, chars_format::scientific, 77, |
| 2588 |
"1.32348890119875375769307336613908403742667641012076273909769952297210693359375e-23"}, |
| 2589 |
{0x1.fffffep-76f, chars_format::scientific, 76, |
| 2590 |
"2.6469778023975075153861467322781680748533528202415254781953990459442138671875e-23"}, |
| 2591 |
{0x1.fffffep-75f, chars_format::scientific, 75, |
| 2592 |
"5.293955604795015030772293464556336149706705640483050956390798091888427734375e-23"}, |
| 2593 |
{0x1.fffffep-74f, chars_format::scientific, 75, |
| 2594 |
"1.058791120959003006154458692911267229941341128096610191278159618377685546875e-22"}, |
| 2595 |
{0x1.fffffep-73f, chars_format::scientific, 74, |
| 2596 |
"2.11758224191800601230891738582253445988268225619322038255631923675537109375e-22"}, |
| 2597 |
{0x1.fffffep-72f, chars_format::scientific, 73, |
| 2598 |
"4.2351644838360120246178347716450689197653645123864407651126384735107421875e-22"}, |
| 2599 |
{0x1.fffffep-71f, chars_format::scientific, 72, |
| 2600 |
"8.470328967672024049235669543290137839530729024772881530225276947021484375e-22"}, |
| 2601 |
{0x1.fffffep-70f, chars_format::scientific, 72, |
| 2602 |
"1.694065793534404809847133908658027567906145804954576306045055389404296875e-21"}, |
| 2603 |
{0x1.fffffep-69f, chars_format::scientific, 71, |
| 2604 |
"3.38813158706880961969426781731605513581229160990915261209011077880859375e-21"}, |
| 2605 |
{0x1.fffffep-68f, chars_format::scientific, 70, |
| 2606 |
"6.7762631741376192393885356346321102716245832198183052241802215576171875e-21"}, |
| 2607 |
{0x1.fffffep-67f, chars_format::scientific, 70, |
| 2608 |
"1.3552526348275238478777071269264220543249166439636610448360443115234375e-20"}, |
| 2609 |
{0x1.fffffep-66f, chars_format::scientific, 69, |
| 2610 |
"2.710505269655047695755414253852844108649833287927322089672088623046875e-20"}, |
| 2611 |
{0x1.fffffep-65f, chars_format::scientific, 68, |
| 2612 |
"5.42101053931009539151082850770568821729966657585464417934417724609375e-20"}, |
| 2613 |
{0x1.fffffep-64f, chars_format::scientific, 68, |
| 2614 |
"1.08420210786201907830216570154113764345993331517092883586883544921875e-19"}, |
| 2615 |
{0x1.fffffep-63f, chars_format::scientific, 67, |
| 2616 |
"2.1684042157240381566043314030822752869198666303418576717376708984375e-19"}, |
| 2617 |
{0x1.fffffep-62f, chars_format::scientific, 66, |
| 2618 |
"4.336808431448076313208662806164550573839733260683715343475341796875e-19"}, |
| 2619 |
{0x1.fffffep-61f, chars_format::scientific, 65, |
| 2620 |
"8.67361686289615262641732561232910114767946652136743068695068359375e-19"}, |
| 2621 |
{0x1.fffffep-60f, chars_format::scientific, 65, |
| 2622 |
"1.73472337257923052528346512246582022953589330427348613739013671875e-18"}, |
| 2623 |
{0x1.fffffep-59f, chars_format::scientific, 64, |
| 2624 |
"3.4694467451584610505669302449316404590717866085469722747802734375e-18"}, |
| 2625 |
{0x1.fffffep-58f, chars_format::scientific, 63, |
| 2626 |
"6.938893490316922101133860489863280918143573217093944549560546875e-18"}, |
| 2627 |
{0x1.fffffep-57f, chars_format::scientific, 63, |
| 2628 |
"1.387778698063384420226772097972656183628714643418788909912109375e-17"}, |
| 2629 |
{0x1.fffffep-56f, chars_format::scientific, 62, |
| 2630 |
"2.77555739612676884045354419594531236725742928683757781982421875e-17"}, |
| 2631 |
{0x1.fffffep-55f, chars_format::scientific, 61, |
| 2632 |
"5.5511147922535376809070883918906247345148585736751556396484375e-17"}, |
| 2633 |
{0x1.fffffep-54f, chars_format::scientific, 61, |
| 2634 |
"1.1102229584507075361814176783781249469029717147350311279296875e-16"}, |
| 2635 |
{0x1.fffffep-53f, chars_format::scientific, 60, |
| 2636 |
"2.220445916901415072362835356756249893805943429470062255859375e-16"}, |
| 2637 |
{0x1.fffffep-52f, chars_format::scientific, 59, |
| 2638 |
"4.44089183380283014472567071351249978761188685894012451171875e-16"}, |
| 2639 |
{0x1.fffffep-51f, chars_format::scientific, 58, "8.8817836676056602894513414270249995752237737178802490234375e-16"}, |
| 2640 |
{0x1.fffffep-50f, chars_format::scientific, 58, "1.7763567335211320578902682854049999150447547435760498046875e-15"}, |
| 2641 |
{0x1.fffffep-49f, chars_format::scientific, 57, "3.552713467042264115780536570809999830089509487152099609375e-15"}, |
| 2642 |
{0x1.fffffep-48f, chars_format::scientific, 56, "7.10542693408452823156107314161999966017901897430419921875e-15"}, |
| 2643 |
{0x1.fffffep-47f, chars_format::scientific, 56, "1.42108538681690564631221462832399993203580379486083984375e-14"}, |
| 2644 |
{0x1.fffffep-46f, chars_format::scientific, 55, "2.8421707736338112926244292566479998640716075897216796875e-14"}, |
| 2645 |
{0x1.fffffep-45f, chars_format::scientific, 54, "5.684341547267622585248858513295999728143215179443359375e-14"}, |
| 2646 |
{0x1.fffffep-44f, chars_format::scientific, 54, "1.136868309453524517049771702659199945628643035888671875e-13"}, |
| 2647 |
{0x1.fffffep-43f, chars_format::scientific, 53, "2.27373661890704903409954340531839989125728607177734375e-13"}, |
| 2648 |
{0x1.fffffep-42f, chars_format::scientific, 52, "4.5474732378140980681990868106367997825145721435546875e-13"}, |
| 2649 |
{0x1.fffffep-41f, chars_format::scientific, 51, "9.094946475628196136398173621273599565029144287109375e-13"}, |
| 2650 |
{0x1.fffffep-40f, chars_format::scientific, 51, "1.818989295125639227279634724254719913005828857421875e-12"}, |
| 2651 |
{0x1.fffffep-39f, chars_format::scientific, 50, "3.63797859025127845455926944850943982601165771484375e-12"}, |
| 2652 |
{0x1.fffffep-38f, chars_format::scientific, 49, "7.2759571805025569091185388970188796520233154296875e-12"}, |
| 2653 |
{0x1.fffffep-37f, chars_format::scientific, 49, "1.4551914361005113818237077794037759304046630859375e-11"}, |
| 2654 |
{0x1.fffffep-36f, chars_format::scientific, 48, "2.910382872201022763647415558807551860809326171875e-11"}, |
| 2655 |
{0x1.fffffep-35f, chars_format::scientific, 47, "5.82076574440204552729483111761510372161865234375e-11"}, |
| 2656 |
{0x1.fffffep-34f, chars_format::scientific, 47, "1.16415314888040910545896622352302074432373046875e-10"}, |
| 2657 |
{0x1.fffffep-33f, chars_format::scientific, 46, "2.3283062977608182109179324470460414886474609375e-10"}, |
| 2658 |
{0x1.fffffep-32f, chars_format::scientific, 45, "4.656612595521636421835864894092082977294921875e-10"}, |
| 2659 |
{0x1.fffffep-31f, chars_format::scientific, 44, "9.31322519104327284367172978818416595458984375e-10"}, |
| 2660 |
{0x1.fffffep-30f, chars_format::scientific, 44, "1.86264503820865456873434595763683319091796875e-09"}, |
| 2661 |
{0x1.fffffep-29f, chars_format::scientific, 43, "3.7252900764173091374686919152736663818359375e-09"}, |
| 2662 |
{0x1.fffffep-28f, chars_format::scientific, 42, "7.450580152834618274937383830547332763671875e-09"}, |
| 2663 |
{0x1.fffffep-27f, chars_format::scientific, 42, "1.490116030566923654987476766109466552734375e-08"}, |
| 2664 |
{0x1.fffffep-26f, chars_format::scientific, 41, "2.98023206113384730997495353221893310546875e-08"}, |
| 2665 |
{0x1.fffffep-25f, chars_format::scientific, 40, "5.9604641222676946199499070644378662109375e-08"}, |
| 2666 |
{0x1.fffffep-24f, chars_format::scientific, 40, "1.1920928244535389239899814128875732421875e-07"}, |
| 2667 |
{0x1.fffffep-23f, chars_format::scientific, 39, "2.384185648907077847979962825775146484375e-07"}, |
| 2668 |
{0x1.fffffep-22f, chars_format::scientific, 38, "4.76837129781415569595992565155029296875e-07"}, |
| 2669 |
{0x1.fffffep-21f, chars_format::scientific, 37, "9.5367425956283113919198513031005859375e-07"}, |
| 2670 |
{0x1.fffffep-20f, chars_format::scientific, 37, "1.9073485191256622783839702606201171875e-06"}, |
| 2671 |
{0x1.fffffep-19f, chars_format::scientific, 36, "3.814697038251324556767940521240234375e-06"}, |
| 2672 |
{0x1.fffffep-18f, chars_format::scientific, 35, "7.62939407650264911353588104248046875e-06"}, |
| 2673 |
{0x1.fffffep-17f, chars_format::scientific, 35, "1.52587881530052982270717620849609375e-05"}, |
| 2674 |
{0x1.fffffep-16f, chars_format::scientific, 34, "3.0517576306010596454143524169921875e-05"}, |
| 2675 |
{0x1.fffffep-15f, chars_format::scientific, 33, "6.103515261202119290828704833984375e-05"}, |
| 2676 |
{0x1.fffffep-14f, chars_format::scientific, 33, "1.220703052240423858165740966796875e-04"}, |
| 2677 |
{0x1.fffffep-13f, chars_format::scientific, 32, "2.44140610448084771633148193359375e-04"}, |
| 2678 |
{0x1.fffffep-12f, chars_format::scientific, 31, "4.8828122089616954326629638671875e-04"}, |
| 2679 |
{0x1.fffffep-11f, chars_format::scientific, 30, "9.765624417923390865325927734375e-04"}, |
| 2680 |
{0x1.fffffep-10f, chars_format::scientific, 30, "1.953124883584678173065185546875e-03"}, |
| 2681 |
{0x1.fffffep-9f, chars_format::scientific, 29, "3.90624976716935634613037109375e-03"}, |
| 2682 |
{0x1.fffffep-8f, chars_format::scientific, 28, "7.8124995343387126922607421875e-03"}, |
| 2683 |
{0x1.fffffep-7f, chars_format::scientific, 28, "1.5624999068677425384521484375e-02"}, |
| 2684 |
{0x1.fffffep-6f, chars_format::scientific, 27, "3.124999813735485076904296875e-02"}, |
| 2685 |
{0x1.fffffep-5f, chars_format::scientific, 26, "6.24999962747097015380859375e-02"}, |
| 2686 |
{0x1.fffffep-4f, chars_format::scientific, 26, "1.24999992549419403076171875e-01"}, |
| 2687 |
{0x1.fffffep-3f, chars_format::scientific, 25, "2.4999998509883880615234375e-01"}, |
| 2688 |
{0x1.fffffep-2f, chars_format::scientific, 24, "4.999999701976776123046875e-01"}, |
| 2689 |
{0x1.fffffep-1f, chars_format::scientific, 23, "9.99999940395355224609375e-01"}, |
| 2690 |
{0x1.fffffep+0f, chars_format::scientific, 23, "1.99999988079071044921875e+00"}, |
| 2691 |
{0x1.fffffep+1f, chars_format::scientific, 22, "3.9999997615814208984375e+00"}, |
| 2692 |
{0x1.fffffep+2f, chars_format::scientific, 21, "7.999999523162841796875e+00"}, |
| 2693 |
{0x1.fffffep+3f, chars_format::scientific, 21, "1.599999904632568359375e+01"}, |
| 2694 |
{0x1.fffffep+4f, chars_format::scientific, 20, "3.19999980926513671875e+01"}, |
| 2695 |
{0x1.fffffep+5f, chars_format::scientific, 19, "6.3999996185302734375e+01"}, |
| 2696 |
{0x1.fffffep+6f, chars_format::scientific, 19, "1.2799999237060546875e+02"}, |
| 2697 |
{0x1.fffffep+7f, chars_format::scientific, 18, "2.559999847412109375e+02"}, |
| 2698 |
{0x1.fffffep+8f, chars_format::scientific, 17, "5.11999969482421875e+02"}, |
| 2699 |
{0x1.fffffep+9f, chars_format::scientific, 17, "1.02399993896484375e+03"}, |
| 2700 |
{0x1.fffffep+10f, chars_format::scientific, 16, "2.0479998779296875e+03"}, |
| 2701 |
{0x1.fffffep+11f, chars_format::scientific, 15, "4.095999755859375e+03"}, |
| 2702 |
{0x1.fffffep+12f, chars_format::scientific, 14, "8.19199951171875e+03"}, |
| 2703 |
{0x1.fffffep+13f, chars_format::scientific, 14, "1.63839990234375e+04"}, |
| 2704 |
{0x1.fffffep+14f, chars_format::scientific, 13, "3.2767998046875e+04"}, |
| 2705 |
{0x1.fffffep+15f, chars_format::scientific, 12, "6.553599609375e+04"}, |
| 2706 |
{0x1.fffffep+16f, chars_format::scientific, 12, "1.310719921875e+05"}, |
| 2707 |
{0x1.fffffep+17f, chars_format::scientific, 11, "2.62143984375e+05"}, |
| 2708 |
{0x1.fffffep+18f, chars_format::scientific, 10, "5.2428796875e+05"}, |
| 2709 |
{0x1.fffffep+19f, chars_format::scientific, 10, "1.0485759375e+06"}, |
| 2710 |
{0x1.fffffep+20f, chars_format::scientific, 9, "2.097151875e+06"}, |
| 2711 |
{0x1.fffffep+21f, chars_format::scientific, 8, "4.19430375e+06"}, |
| 2712 |
{0x1.fffffep+22f, chars_format::scientific, 7, "8.3886075e+06"}, |
| 2713 |
{0x1.fffffep+23f, chars_format::scientific, 7, "1.6777215e+07"}, |
| 2714 |
{0x1.fffffep+24f, chars_format::scientific, 6, "3.355443e+07"}, |
| 2715 |
{0x1.fffffep+25f, chars_format::scientific, 6, "6.710886e+07"}, |
| 2716 |
{0x1.fffffep+26f, chars_format::scientific, 7, "1.3421772e+08"}, |
| 2717 |
{0x1.fffffep+27f, chars_format::scientific, 7, "2.6843544e+08"}, |
| 2718 |
{0x1.fffffep+28f, chars_format::scientific, 7, "5.3687088e+08"}, |
| 2719 |
{0x1.fffffep+29f, chars_format::scientific, 8, "1.07374176e+09"}, |
| 2720 |
{0x1.fffffep+30f, chars_format::scientific, 8, "2.14748352e+09"}, |
| 2721 |
{0x1.fffffep+31f, chars_format::scientific, 8, "4.29496704e+09"}, |
| 2722 |
{0x1.fffffep+32f, chars_format::scientific, 8, "8.58993408e+09"}, |
| 2723 |
{0x1.fffffep+33f, chars_format::scientific, 9, "1.717986816e+10"}, |
| 2724 |
{0x1.fffffep+34f, chars_format::scientific, 9, "3.435973632e+10"}, |
| 2725 |
{0x1.fffffep+35f, chars_format::scientific, 9, "6.871947264e+10"}, |
| 2726 |
{0x1.fffffep+36f, chars_format::scientific, 10, "1.3743894528e+11"}, |
| 2727 |
{0x1.fffffep+37f, chars_format::scientific, 10, "2.7487789056e+11"}, |
| 2728 |
{0x1.fffffep+38f, chars_format::scientific, 10, "5.4975578112e+11"}, |
| 2729 |
{0x1.fffffep+39f, chars_format::scientific, 11, "1.09951156224e+12"}, |
| 2730 |
{0x1.fffffep+40f, chars_format::scientific, 11, "2.19902312448e+12"}, |
| 2731 |
{0x1.fffffep+41f, chars_format::scientific, 11, "4.39804624896e+12"}, |
| 2732 |
{0x1.fffffep+42f, chars_format::scientific, 11, "8.79609249792e+12"}, |
| 2733 |
{0x1.fffffep+43f, chars_format::scientific, 12, "1.759218499584e+13"}, |
| 2734 |
{0x1.fffffep+44f, chars_format::scientific, 12, "3.518436999168e+13"}, |
| 2735 |
{0x1.fffffep+45f, chars_format::scientific, 12, "7.036873998336e+13"}, |
| 2736 |
{0x1.fffffep+46f, chars_format::scientific, 13, "1.4073747996672e+14"}, |
| 2737 |
{0x1.fffffep+47f, chars_format::scientific, 13, "2.8147495993344e+14"}, |
| 2738 |
{0x1.fffffep+48f, chars_format::scientific, 13, "5.6294991986688e+14"}, |
| 2739 |
{0x1.fffffep+49f, chars_format::scientific, 14, "1.12589983973376e+15"}, |
| 2740 |
{0x1.fffffep+50f, chars_format::scientific, 14, "2.25179967946752e+15"}, |
| 2741 |
{0x1.fffffep+51f, chars_format::scientific, 14, "4.50359935893504e+15"}, |
| 2742 |
{0x1.fffffep+52f, chars_format::scientific, 14, "9.00719871787008e+15"}, |
| 2743 |
{0x1.fffffep+53f, chars_format::scientific, 15, "1.801439743574016e+16"}, |
| 2744 |
{0x1.fffffep+54f, chars_format::scientific, 15, "3.602879487148032e+16"}, |
| 2745 |
{0x1.fffffep+55f, chars_format::scientific, 15, "7.205758974296064e+16"}, |
| 2746 |
{0x1.fffffep+56f, chars_format::scientific, 16, "1.4411517948592128e+17"}, |
| 2747 |
{0x1.fffffep+57f, chars_format::scientific, 16, "2.8823035897184256e+17"}, |
| 2748 |
{0x1.fffffep+58f, chars_format::scientific, 16, "5.7646071794368512e+17"}, |
| 2749 |
{0x1.fffffep+59f, chars_format::scientific, 17, "1.15292143588737024e+18"}, |
| 2750 |
{0x1.fffffep+60f, chars_format::scientific, 17, "2.30584287177474048e+18"}, |
| 2751 |
{0x1.fffffep+61f, chars_format::scientific, 17, "4.61168574354948096e+18"}, |
| 2752 |
{0x1.fffffep+62f, chars_format::scientific, 17, "9.22337148709896192e+18"}, |
| 2753 |
{0x1.fffffep+63f, chars_format::scientific, 18, "1.844674297419792384e+19"}, |
| 2754 |
{0x1.fffffep+64f, chars_format::scientific, 18, "3.689348594839584768e+19"}, |
| 2755 |
{0x1.fffffep+65f, chars_format::scientific, 18, "7.378697189679169536e+19"}, |
| 2756 |
{0x1.fffffep+66f, chars_format::scientific, 19, "1.4757394379358339072e+20"}, |
| 2757 |
{0x1.fffffep+67f, chars_format::scientific, 19, "2.9514788758716678144e+20"}, |
| 2758 |
{0x1.fffffep+68f, chars_format::scientific, 19, "5.9029577517433356288e+20"}, |
| 2759 |
{0x1.fffffep+69f, chars_format::scientific, 20, "1.18059155034866712576e+21"}, |
| 2760 |
{0x1.fffffep+70f, chars_format::scientific, 20, "2.36118310069733425152e+21"}, |
| 2761 |
{0x1.fffffep+71f, chars_format::scientific, 20, "4.72236620139466850304e+21"}, |
| 2762 |
{0x1.fffffep+72f, chars_format::scientific, 20, "9.44473240278933700608e+21"}, |
| 2763 |
{0x1.fffffep+73f, chars_format::scientific, 21, "1.888946480557867401216e+22"}, |
| 2764 |
{0x1.fffffep+74f, chars_format::scientific, 21, "3.777892961115734802432e+22"}, |
| 2765 |
{0x1.fffffep+75f, chars_format::scientific, 21, "7.555785922231469604864e+22"}, |
| 2766 |
{0x1.fffffep+76f, chars_format::scientific, 22, "1.5111571844462939209728e+23"}, |
| 2767 |
{0x1.fffffep+77f, chars_format::scientific, 22, "3.0223143688925878419456e+23"}, |
| 2768 |
{0x1.fffffep+78f, chars_format::scientific, 22, "6.0446287377851756838912e+23"}, |
| 2769 |
{0x1.fffffep+79f, chars_format::scientific, 23, "1.20892574755703513677824e+24"}, |
| 2770 |
{0x1.fffffep+80f, chars_format::scientific, 23, "2.41785149511407027355648e+24"}, |
| 2771 |
{0x1.fffffep+81f, chars_format::scientific, 23, "4.83570299022814054711296e+24"}, |
| 2772 |
{0x1.fffffep+82f, chars_format::scientific, 23, "9.67140598045628109422592e+24"}, |
| 2773 |
{0x1.fffffep+83f, chars_format::scientific, 24, "1.934281196091256218845184e+25"}, |
| 2774 |
{0x1.fffffep+84f, chars_format::scientific, 24, "3.868562392182512437690368e+25"}, |
| 2775 |
{0x1.fffffep+85f, chars_format::scientific, 24, "7.737124784365024875380736e+25"}, |
| 2776 |
{0x1.fffffep+86f, chars_format::scientific, 25, "1.5474249568730049750761472e+26"}, |
| 2777 |
{0x1.fffffep+87f, chars_format::scientific, 25, "3.0948499137460099501522944e+26"}, |
| 2778 |
{0x1.fffffep+88f, chars_format::scientific, 25, "6.1896998274920199003045888e+26"}, |
| 2779 |
{0x1.fffffep+89f, chars_format::scientific, 26, "1.23793996549840398006091776e+27"}, |
| 2780 |
{0x1.fffffep+90f, chars_format::scientific, 26, "2.47587993099680796012183552e+27"}, |
| 2781 |
{0x1.fffffep+91f, chars_format::scientific, 26, "4.95175986199361592024367104e+27"}, |
| 2782 |
{0x1.fffffep+92f, chars_format::scientific, 26, "9.90351972398723184048734208e+27"}, |
| 2783 |
{0x1.fffffep+93f, chars_format::scientific, 27, "1.980703944797446368097468416e+28"}, |
| 2784 |
{0x1.fffffep+94f, chars_format::scientific, 27, "3.961407889594892736194936832e+28"}, |
| 2785 |
{0x1.fffffep+95f, chars_format::scientific, 27, "7.922815779189785472389873664e+28"}, |
| 2786 |
{0x1.fffffep+96f, chars_format::scientific, 28, "1.5845631558379570944779747328e+29"}, |
| 2787 |
{0x1.fffffep+97f, chars_format::scientific, 28, "3.1691263116759141889559494656e+29"}, |
| 2788 |
{0x1.fffffep+98f, chars_format::scientific, 28, "6.3382526233518283779118989312e+29"}, |
| 2789 |
{0x1.fffffep+99f, chars_format::scientific, 29, "1.26765052467036567558237978624e+30"}, |
| 2790 |
{0x1.fffffep+100f, chars_format::scientific, 29, "2.53530104934073135116475957248e+30"}, |
| 2791 |
{0x1.fffffep+101f, chars_format::scientific, 29, "5.07060209868146270232951914496e+30"}, |
| 2792 |
{0x1.fffffep+102f, chars_format::scientific, 30, "1.014120419736292540465903828992e+31"}, |
| 2793 |
{0x1.fffffep+103f, chars_format::scientific, 30, "2.028240839472585080931807657984e+31"}, |
| 2794 |
{0x1.fffffep+104f, chars_format::scientific, 30, "4.056481678945170161863615315968e+31"}, |
| 2795 |
{0x1.fffffep+105f, chars_format::scientific, 30, "8.112963357890340323727230631936e+31"}, |
| 2796 |
{0x1.fffffep+106f, chars_format::scientific, 31, "1.6225926715780680647454461263872e+32"}, |
| 2797 |
{0x1.fffffep+107f, chars_format::scientific, 31, "3.2451853431561361294908922527744e+32"}, |
| 2798 |
{0x1.fffffep+108f, chars_format::scientific, 31, "6.4903706863122722589817845055488e+32"}, |
| 2799 |
{0x1.fffffep+109f, chars_format::scientific, 32, "1.29807413726245445179635690110976e+33"}, |
| 2800 |
{0x1.fffffep+110f, chars_format::scientific, 32, "2.59614827452490890359271380221952e+33"}, |
| 2801 |
{0x1.fffffep+111f, chars_format::scientific, 32, "5.19229654904981780718542760443904e+33"}, |
| 2802 |
{0x1.fffffep+112f, chars_format::scientific, 33, "1.038459309809963561437085520887808e+34"}, |
| 2803 |
{0x1.fffffep+113f, chars_format::scientific, 33, "2.076918619619927122874171041775616e+34"}, |
| 2804 |
{0x1.fffffep+114f, chars_format::scientific, 33, "4.153837239239854245748342083551232e+34"}, |
| 2805 |
{0x1.fffffep+115f, chars_format::scientific, 33, "8.307674478479708491496684167102464e+34"}, |
| 2806 |
{0x1.fffffep+116f, chars_format::scientific, 34, "1.6615348956959416982993368334204928e+35"}, |
| 2807 |
{0x1.fffffep+117f, chars_format::scientific, 34, "3.3230697913918833965986736668409856e+35"}, |
| 2808 |
{0x1.fffffep+118f, chars_format::scientific, 34, "6.6461395827837667931973473336819712e+35"}, |
| 2809 |
{0x1.fffffep+119f, chars_format::scientific, 35, "1.32922791655675335863946946673639424e+36"}, |
| 2810 |
{0x1.fffffep+120f, chars_format::scientific, 35, "2.65845583311350671727893893347278848e+36"}, |
| 2811 |
{0x1.fffffep+121f, chars_format::scientific, 35, "5.31691166622701343455787786694557696e+36"}, |
| 2812 |
{0x1.fffffep+122f, chars_format::scientific, 36, "1.063382333245402686911575573389115392e+37"}, |
| 2813 |
{0x1.fffffep+123f, chars_format::scientific, 36, "2.126764666490805373823151146778230784e+37"}, |
| 2814 |
{0x1.fffffep+124f, chars_format::scientific, 36, "4.253529332981610747646302293556461568e+37"}, |
| 2815 |
{0x1.fffffep+125f, chars_format::scientific, 36, "8.507058665963221495292604587112923136e+37"}, |
| 2816 |
{0x1.fffffep+126f, chars_format::scientific, 37, "1.7014117331926442990585209174225846272e+38"}, |
| 2817 |
{0x1.fffffep+127f, chars_format::scientific, 37, "3.4028234663852885981170418348451692544e+38"}, |
| 2818 |
}; |
| 2819 |
|
| 2820 |
inline constexpr float_to_chars_testcase float_general_precision_to_chars_test_cases[] = { |
| 2821 |
// Test special cases (zero, inf, nan) and an ordinary case. Also test negative signs. |
| 2822 |
{0.0f, chars_format::general, 4, "0"}, |
| 2823 |
{-0.0f, chars_format::general, 4, "-0"}, |
| 2824 |
{float_inf, chars_format::general, 4, "inf"}, |
| 2825 |
{-float_inf, chars_format::general, 4, "-inf"}, |
| 2826 |
{float_nan, chars_format::general, 4, "nan"}, |
| 2827 |
{-float_nan, chars_format::general, 4, "-nan"}, |
| 2828 |
{1.729f, chars_format::general, 4, "1.729"}, |
| 2829 |
{-1.729f, chars_format::general, 4, "-1.729"}, |
| 2830 |
|
| 2831 |
// Test corner cases. |
| 2832 |
{0x0.000002p-126f, chars_format::general, 1000, |
| 2833 |
"1.40129846432481707092372958328991613128026194187651577175706828388979108268586060148663818836212158203125" |
| 2834 |
"e-45"}, // min subnormal |
| 2835 |
{0x0.fffffep-126f, chars_format::general, 1000, |
| 2836 |
"1." |
| 2837 |
"17549421069244107548702944484928734882705242874589333385717453057158887047561890426550235133618116378784179687" |
| 2838 |
"5e-38"}, // max subnormal |
| 2839 |
{0x1p-126f, chars_format::general, 1000, |
| 2840 |
"1.1754943508222875079687365372222456778186655567720875215087517062784172594547271728515625e-38"}, // min normal |
| 2841 |
{0x1.fffffep+127f, chars_format::general, 1000, "340282346638528859811704183484516925440"}, // max normal |
| 2842 |
|
| 2843 |
{0x0.000002p-126f, chars_format::general, 6, "1.4013e-45"}, // min subnormal |
| 2844 |
{0x0.fffffep-126f, chars_format::general, 6, "1.17549e-38"}, // max subnormal |
| 2845 |
{0x1p-126f, chars_format::general, 6, "1.17549e-38"}, // min normal |
| 2846 |
{0x1.fffffep+127f, chars_format::general, 6, "3.40282e+38"}, // max normal |
| 2847 |
|
| 2848 |
// Test maximum-length output (excluding minus signs). |
| 2849 |
{0x1.fffffep-126f, chars_format::general, 1000, |
| 2850 |
"2." |
| 2851 |
"35098856151472858345576598207153302664571798551798085536592623685000612993034607711706485133618116378784179687" |
| 2852 |
"5e-38"}, // scientific, happens to be the same length as max subnormal |
| 2853 |
{0x1.fffffep-14f, chars_format::general, 1000, "0.0001220703052240423858165740966796875"}, // fixed |
| 2854 |
|
| 2855 |
// Test varying precision. Negative precision requests P == 6. Zero precision requests P == 1. |
| 2856 |
// Here, the scientific exponent X is 0. |
| 2857 |
// Therefore, fixed notation is always chosen with precision P - (X + 1) == P - 1. |
| 2858 |
{0x1.b04p0f, chars_format::general, -2, "1.68848"}, |
| 2859 |
{0x1.b04p0f, chars_format::general, -1, "1.68848"}, |
| 2860 |
{0x1.b04p0f, chars_format::general, 0, "2"}, |
| 2861 |
{0x1.b04p0f, chars_format::general, 1, "2"}, // fixed notation trims decimal point |
| 2862 |
{0x1.b04p0f, chars_format::general, 2, "1.7"}, |
| 2863 |
{0x1.b04p0f, chars_format::general, 3, "1.69"}, |
| 2864 |
{0x1.b04p0f, chars_format::general, 4, "1.688"}, |
| 2865 |
{0x1.b04p0f, chars_format::general, 5, "1.6885"}, |
| 2866 |
{0x1.b04p0f, chars_format::general, 6, "1.68848"}, |
| 2867 |
{0x1.b04p0f, chars_format::general, 7, "1.688477"}, |
| 2868 |
{0x1.b04p0f, chars_format::general, 8, "1.6884766"}, |
| 2869 |
{0x1.b04p0f, chars_format::general, 9, "1.68847656"}, |
| 2870 |
{0x1.b04p0f, chars_format::general, 10, "1.688476562"}, // round to even |
| 2871 |
{0x1.b04p0f, chars_format::general, 11, "1.6884765625"}, // exact |
| 2872 |
{0x1.b04p0f, chars_format::general, 12, "1.6884765625"}, // trim trailing zeros |
| 2873 |
{0x1.b04p0f, chars_format::general, 13, "1.6884765625"}, |
| 2874 |
|
| 2875 |
// Here, the scientific exponent X is -5. |
| 2876 |
// Therefore, scientific notation is always chosen with precision P - 1. |
| 2877 |
{0x1.8p-15f, chars_format::general, -2, "4.57764e-05"}, |
| 2878 |
{0x1.8p-15f, chars_format::general, -1, "4.57764e-05"}, |
| 2879 |
{0x1.8p-15f, chars_format::general, 0, "5e-05"}, |
| 2880 |
{0x1.8p-15f, chars_format::general, 1, "5e-05"}, // scientific notation trims decimal point |
| 2881 |
{0x1.8p-15f, chars_format::general, 2, "4.6e-05"}, |
| 2882 |
{0x1.8p-15f, chars_format::general, 3, "4.58e-05"}, |
| 2883 |
{0x1.8p-15f, chars_format::general, 4, "4.578e-05"}, |
| 2884 |
{0x1.8p-15f, chars_format::general, 5, "4.5776e-05"}, |
| 2885 |
{0x1.8p-15f, chars_format::general, 6, "4.57764e-05"}, |
| 2886 |
{0x1.8p-15f, chars_format::general, 7, "4.577637e-05"}, |
| 2887 |
{0x1.8p-15f, chars_format::general, 8, "4.5776367e-05"}, |
| 2888 |
{0x1.8p-15f, chars_format::general, 9, "4.57763672e-05"}, |
| 2889 |
{0x1.8p-15f, chars_format::general, 10, "4.577636719e-05"}, |
| 2890 |
{0x1.8p-15f, chars_format::general, 11, "4.5776367188e-05"}, // round to even |
| 2891 |
{0x1.8p-15f, chars_format::general, 12, "4.57763671875e-05"}, // exact |
| 2892 |
{0x1.8p-15f, chars_format::general, 13, "4.57763671875e-05"}, // trim trailing zeros |
| 2893 |
{0x1.8p-15f, chars_format::general, 14, "4.57763671875e-05"}, |
| 2894 |
|
| 2895 |
// Trim trailing zeros. |
| 2896 |
{0x1.80015p0f, chars_format::general, 1, "2"}, // fixed notation trims decimal point |
| 2897 |
{0x1.80015p0f, chars_format::general, 2, "1.5"}, |
| 2898 |
{0x1.80015p0f, chars_format::general, 3, "1.5"}, // general trims trailing zeros |
| 2899 |
{0x1.80015p0f, chars_format::general, 4, "1.5"}, |
| 2900 |
{0x1.80015p0f, chars_format::general, 5, "1.5"}, |
| 2901 |
{0x1.80015p0f, chars_format::general, 6, "1.50002"}, |
| 2902 |
{0x1.80015p0f, chars_format::general, 7, "1.50002"}, |
| 2903 |
{0x1.80015p0f, chars_format::general, 8, "1.50002"}, |
| 2904 |
{0x1.80015p0f, chars_format::general, 9, "1.50002003"}, |
| 2905 |
{0x1.80015p0f, chars_format::general, 10, "1.500020027"}, |
| 2906 |
{0x1.80015p0f, chars_format::general, 11, "1.5000200272"}, |
| 2907 |
{0x1.80015p0f, chars_format::general, 12, "1.50002002716"}, |
| 2908 |
{0x1.80015p0f, chars_format::general, 13, "1.500020027161"}, |
| 2909 |
{0x1.80015p0f, chars_format::general, 14, "1.5000200271606"}, |
| 2910 |
{0x1.80015p0f, chars_format::general, 15, "1.50002002716064"}, |
| 2911 |
{0x1.80015p0f, chars_format::general, 16, "1.500020027160645"}, |
| 2912 |
{0x1.80015p0f, chars_format::general, 17, "1.5000200271606445"}, |
| 2913 |
{0x1.80015p0f, chars_format::general, 18, "1.50002002716064453"}, |
| 2914 |
{0x1.80015p0f, chars_format::general, 19, "1.500020027160644531"}, |
| 2915 |
{0x1.80015p0f, chars_format::general, 20, "1.5000200271606445312"}, // round to even |
| 2916 |
{0x1.80015p0f, chars_format::general, 21, "1.50002002716064453125"}, // exact |
| 2917 |
|
| 2918 |
// Trim trailing zeros and decimal point. |
| 2919 |
{0x1.00015p0f, chars_format::general, 1, "1"}, // fixed notation trims decimal point |
| 2920 |
{0x1.00015p0f, chars_format::general, 2, "1"}, // general trims decimal point and trailing zeros |
| 2921 |
{0x1.00015p0f, chars_format::general, 3, "1"}, |
| 2922 |
{0x1.00015p0f, chars_format::general, 4, "1"}, |
| 2923 |
{0x1.00015p0f, chars_format::general, 5, "1"}, |
| 2924 |
{0x1.00015p0f, chars_format::general, 6, "1.00002"}, |
| 2925 |
{0x1.00015p0f, chars_format::general, 7, "1.00002"}, |
| 2926 |
{0x1.00015p0f, chars_format::general, 8, "1.00002"}, |
| 2927 |
{0x1.00015p0f, chars_format::general, 9, "1.00002003"}, |
| 2928 |
{0x1.00015p0f, chars_format::general, 10, "1.000020027"}, |
| 2929 |
{0x1.00015p0f, chars_format::general, 11, "1.0000200272"}, |
| 2930 |
{0x1.00015p0f, chars_format::general, 12, "1.00002002716"}, |
| 2931 |
{0x1.00015p0f, chars_format::general, 13, "1.000020027161"}, |
| 2932 |
{0x1.00015p0f, chars_format::general, 14, "1.0000200271606"}, |
| 2933 |
{0x1.00015p0f, chars_format::general, 15, "1.00002002716064"}, |
| 2934 |
{0x1.00015p0f, chars_format::general, 16, "1.000020027160645"}, |
| 2935 |
{0x1.00015p0f, chars_format::general, 17, "1.0000200271606445"}, |
| 2936 |
{0x1.00015p0f, chars_format::general, 18, "1.00002002716064453"}, |
| 2937 |
{0x1.00015p0f, chars_format::general, 19, "1.000020027160644531"}, |
| 2938 |
{0x1.00015p0f, chars_format::general, 20, "1.0000200271606445312"}, // round to even |
| 2939 |
{0x1.00015p0f, chars_format::general, 21, "1.00002002716064453125"}, // exact |
| 2940 |
|
| 2941 |
// Trim trailing zeros, scientific notation. |
| 2942 |
{0x1.5cf752p-20f, chars_format::general, 1, "1e-06"}, // scientific notation trims decimal point |
| 2943 |
{0x1.5cf752p-20f, chars_format::general, 2, "1.3e-06"}, |
| 2944 |
{0x1.5cf752p-20f, chars_format::general, 3, "1.3e-06"}, // general trims trailing zeros |
| 2945 |
{0x1.5cf752p-20f, chars_format::general, 4, "1.3e-06"}, |
| 2946 |
{0x1.5cf752p-20f, chars_format::general, 5, "1.3e-06"}, |
| 2947 |
{0x1.5cf752p-20f, chars_format::general, 6, "1.3e-06"}, |
| 2948 |
{0x1.5cf752p-20f, chars_format::general, 7, "1.3e-06"}, |
| 2949 |
{0x1.5cf752p-20f, chars_format::general, 8, "1.3e-06"}, |
| 2950 |
{0x1.5cf752p-20f, chars_format::general, 9, "1.30000001e-06"}, |
| 2951 |
{0x1.5cf752p-20f, chars_format::general, 10, "1.300000008e-06"}, |
| 2952 |
{0x1.5cf752p-20f, chars_format::general, 11, "1.3000000081e-06"}, |
| 2953 |
{0x1.5cf752p-20f, chars_format::general, 12, "1.30000000809e-06"}, |
| 2954 |
{0x1.5cf752p-20f, chars_format::general, 13, "1.300000008086e-06"}, |
| 2955 |
{0x1.5cf752p-20f, chars_format::general, 14, "1.3000000080865e-06"}, |
| 2956 |
{0x1.5cf752p-20f, chars_format::general, 15, "1.3000000080865e-06"}, |
| 2957 |
{0x1.5cf752p-20f, chars_format::general, 16, "1.300000008086499e-06"}, |
| 2958 |
{0x1.5cf752p-20f, chars_format::general, 17, "1.3000000080864993e-06"}, |
| 2959 |
{0x1.5cf752p-20f, chars_format::general, 18, "1.30000000808649929e-06"}, |
| 2960 |
{0x1.5cf752p-20f, chars_format::general, 19, "1.300000008086499292e-06"}, |
| 2961 |
{0x1.5cf752p-20f, chars_format::general, 20, "1.3000000080864992924e-06"}, |
| 2962 |
{0x1.5cf752p-20f, chars_format::general, 21, "1.3000000080864992924e-06"}, |
| 2963 |
{0x1.5cf752p-20f, chars_format::general, 22, "1.300000008086499292403e-06"}, |
| 2964 |
{0x1.5cf752p-20f, chars_format::general, 23, "1.3000000080864992924035e-06"}, |
| 2965 |
{0x1.5cf752p-20f, chars_format::general, 24, "1.30000000808649929240346e-06"}, |
| 2966 |
{0x1.5cf752p-20f, chars_format::general, 25, "1.30000000808649929240346e-06"}, |
| 2967 |
{0x1.5cf752p-20f, chars_format::general, 26, "1.3000000080864992924034595e-06"}, |
| 2968 |
{0x1.5cf752p-20f, chars_format::general, 27, "1.30000000808649929240345955e-06"}, |
| 2969 |
{0x1.5cf752p-20f, chars_format::general, 28, "1.300000008086499292403459549e-06"}, |
| 2970 |
{0x1.5cf752p-20f, chars_format::general, 29, "1.300000008086499292403459549e-06"}, |
| 2971 |
{0x1.5cf752p-20f, chars_format::general, 30, "1.30000000808649929240345954895e-06"}, |
| 2972 |
{0x1.5cf752p-20f, chars_format::general, 31, "1.30000000808649929240345954895e-06"}, |
| 2973 |
{0x1.5cf752p-20f, chars_format::general, 32, "1.3000000080864992924034595489502e-06"}, |
| 2974 |
{0x1.5cf752p-20f, chars_format::general, 33, "1.3000000080864992924034595489502e-06"}, |
| 2975 |
{0x1.5cf752p-20f, chars_format::general, 34, "1.300000008086499292403459548950195e-06"}, |
| 2976 |
{0x1.5cf752p-20f, chars_format::general, 35, "1.3000000080864992924034595489501953e-06"}, |
| 2977 |
{0x1.5cf752p-20f, chars_format::general, 36, "1.30000000808649929240345954895019531e-06"}, |
| 2978 |
{0x1.5cf752p-20f, chars_format::general, 37, "1.300000008086499292403459548950195312e-06"}, // round to even |
| 2979 |
{0x1.5cf752p-20f, chars_format::general, 38, "1.3000000080864992924034595489501953125e-06"}, // exact |
| 2980 |
|
| 2981 |
// Trim trailing zeros and decimal point, scientific notation. |
| 2982 |
{0x1.92a738p-19f, chars_format::general, 1, "3e-06"}, // scientific notation trims decimal point |
| 2983 |
{0x1.92a738p-19f, chars_format::general, 2, "3e-06"}, // general trims decimal point and trailing zeros |
| 2984 |
{0x1.92a738p-19f, chars_format::general, 3, "3e-06"}, |
| 2985 |
{0x1.92a738p-19f, chars_format::general, 4, "3e-06"}, |
| 2986 |
{0x1.92a738p-19f, chars_format::general, 5, "3e-06"}, |
| 2987 |
{0x1.92a738p-19f, chars_format::general, 6, "3e-06"}, |
| 2988 |
{0x1.92a738p-19f, chars_format::general, 7, "3e-06"}, |
| 2989 |
{0x1.92a738p-19f, chars_format::general, 8, "3.0000001e-06"}, |
| 2990 |
{0x1.92a738p-19f, chars_format::general, 9, "3.00000011e-06"}, |
| 2991 |
{0x1.92a738p-19f, chars_format::general, 10, "3.000000106e-06"}, |
| 2992 |
{0x1.92a738p-19f, chars_format::general, 11, "3.0000001061e-06"}, |
| 2993 |
{0x1.92a738p-19f, chars_format::general, 12, "3.00000010611e-06"}, |
| 2994 |
{0x1.92a738p-19f, chars_format::general, 13, "3.000000106113e-06"}, |
| 2995 |
{0x1.92a738p-19f, chars_format::general, 14, "3.0000001061126e-06"}, |
| 2996 |
{0x1.92a738p-19f, chars_format::general, 15, "3.00000010611257e-06"}, |
| 2997 |
{0x1.92a738p-19f, chars_format::general, 16, "3.000000106112566e-06"}, |
| 2998 |
{0x1.92a738p-19f, chars_format::general, 17, "3.0000001061125658e-06"}, |
| 2999 |
{0x1.92a738p-19f, chars_format::general, 18, "3.00000010611256585e-06"}, |
| 3000 |
{0x1.92a738p-19f, chars_format::general, 19, "3.000000106112565845e-06"}, |
| 3001 |
{0x1.92a738p-19f, chars_format::general, 20, "3.0000001061125658453e-06"}, |
| 3002 |
{0x1.92a738p-19f, chars_format::general, 21, "3.00000010611256584525e-06"}, |
| 3003 |
{0x1.92a738p-19f, chars_format::general, 22, "3.000000106112565845251e-06"}, |
| 3004 |
{0x1.92a738p-19f, chars_format::general, 23, "3.0000001061125658452511e-06"}, |
| 3005 |
{0x1.92a738p-19f, chars_format::general, 24, "3.00000010611256584525108e-06"}, |
| 3006 |
{0x1.92a738p-19f, chars_format::general, 25, "3.000000106112565845251083e-06"}, |
| 3007 |
{0x1.92a738p-19f, chars_format::general, 26, "3.0000001061125658452510834e-06"}, |
| 3008 |
{0x1.92a738p-19f, chars_format::general, 27, "3.00000010611256584525108337e-06"}, |
| 3009 |
{0x1.92a738p-19f, chars_format::general, 28, "3.000000106112565845251083374e-06"}, |
| 3010 |
{0x1.92a738p-19f, chars_format::general, 29, "3.000000106112565845251083374e-06"}, |
| 3011 |
{0x1.92a738p-19f, chars_format::general, 30, "3.00000010611256584525108337402e-06"}, |
| 3012 |
{0x1.92a738p-19f, chars_format::general, 31, "3.000000106112565845251083374023e-06"}, |
| 3013 |
{0x1.92a738p-19f, chars_format::general, 32, "3.0000001061125658452510833740234e-06"}, |
| 3014 |
{0x1.92a738p-19f, chars_format::general, 33, "3.00000010611256584525108337402344e-06"}, |
| 3015 |
{0x1.92a738p-19f, chars_format::general, 34, "3.000000106112565845251083374023438e-06"}, // round to even |
| 3016 |
{0x1.92a738p-19f, chars_format::general, 35, "3.0000001061125658452510833740234375e-06"}, // exact |
| 3017 |
|
| 3018 |
// Test a large precision with fixed notation and scientific notation, |
| 3019 |
// verifying that we remain within the bounds of any lookup tables. |
| 3020 |
{0x1.ba9fbep+0f, chars_format::general, 5000, "1.72899997234344482421875"}, |
| 3021 |
{0x1.d01ffap-20f, chars_format::general, 5000, "1.7290000187131226994097232818603515625e-06"}, |
| 3022 |
|
| 3023 |
// Test the transitions between fixed notation and scientific notation. |
| 3024 |
{5555555.0f, chars_format::general, 1, "6e+06"}, |
| 3025 |
{555555.0f, chars_format::general, 1, "6e+05"}, |
| 3026 |
{55555.0f, chars_format::general, 1, "6e+04"}, |
| 3027 |
{5555.0f, chars_format::general, 1, "6e+03"}, |
| 3028 |
{555.0f, chars_format::general, 1, "6e+02"}, |
| 3029 |
{55.0f, chars_format::general, 1, "6e+01"}, // round to even |
| 3030 |
{5.0f, chars_format::general, 1, "5"}, |
| 3031 |
{0x1p-3f, chars_format::general, 1, "0.1"}, // 0.125 |
| 3032 |
{0x1p-6f, chars_format::general, 1, "0.02"}, // 0.015625 |
| 3033 |
{0x1p-9f, chars_format::general, 1, "0.002"}, // 0.001953125 |
| 3034 |
{0x1p-13f, chars_format::general, 1, "0.0001"}, // 0.0001220703125 |
| 3035 |
{0x1p-16f, chars_format::general, 1, "2e-05"}, // 1.52587890625e-05 |
| 3036 |
{0x1p-19f, chars_format::general, 1, "2e-06"}, // 1.9073486328125e-06 |
| 3037 |
|
| 3038 |
{5555555.0f, chars_format::general, 2, "5.6e+06"}, |
| 3039 |
{555555.0f, chars_format::general, 2, "5.6e+05"}, |
| 3040 |
{55555.0f, chars_format::general, 2, "5.6e+04"}, |
| 3041 |
{5555.0f, chars_format::general, 2, "5.6e+03"}, |
| 3042 |
{555.0f, chars_format::general, 2, "5.6e+02"}, // round to even |
| 3043 |
{55.0f, chars_format::general, 2, "55"}, |
| 3044 |
{5.0f, chars_format::general, 2, "5"}, |
| 3045 |
{0x1p-3f, chars_format::general, 2, "0.12"}, // round to even |
| 3046 |
{0x1p-6f, chars_format::general, 2, "0.016"}, |
| 3047 |
{0x1p-9f, chars_format::general, 2, "0.002"}, |
| 3048 |
{0x1p-13f, chars_format::general, 2, "0.00012"}, |
| 3049 |
{0x1p-16f, chars_format::general, 2, "1.5e-05"}, |
| 3050 |
{0x1p-19f, chars_format::general, 2, "1.9e-06"}, |
| 3051 |
|
| 3052 |
{5555555.0f, chars_format::general, 3, "5.56e+06"}, |
| 3053 |
{555555.0f, chars_format::general, 3, "5.56e+05"}, |
| 3054 |
{55555.0f, chars_format::general, 3, "5.56e+04"}, |
| 3055 |
{5555.0f, chars_format::general, 3, "5.56e+03"}, // round to even |
| 3056 |
{555.0f, chars_format::general, 3, "555"}, |
| 3057 |
{55.0f, chars_format::general, 3, "55"}, |
| 3058 |
{5.0f, chars_format::general, 3, "5"}, |
| 3059 |
{0x1p-3f, chars_format::general, 3, "0.125"}, |
| 3060 |
{0x1p-6f, chars_format::general, 3, "0.0156"}, |
| 3061 |
{0x1p-9f, chars_format::general, 3, "0.00195"}, |
| 3062 |
{0x1p-13f, chars_format::general, 3, "0.000122"}, |
| 3063 |
{0x1p-16f, chars_format::general, 3, "1.53e-05"}, |
| 3064 |
{0x1p-19f, chars_format::general, 3, "1.91e-06"}, |
| 3065 |
|
| 3066 |
{5555555.0f, chars_format::general, 4, "5.556e+06"}, |
| 3067 |
{555555.0f, chars_format::general, 4, "5.556e+05"}, |
| 3068 |
{55555.0f, chars_format::general, 4, "5.556e+04"}, // round to even |
| 3069 |
{5555.0f, chars_format::general, 4, "5555"}, |
| 3070 |
{555.0f, chars_format::general, 4, "555"}, |
| 3071 |
{55.0f, chars_format::general, 4, "55"}, |
| 3072 |
{5.0f, chars_format::general, 4, "5"}, |
| 3073 |
{0x1p-3f, chars_format::general, 4, "0.125"}, |
| 3074 |
{0x1p-6f, chars_format::general, 4, "0.01562"}, // round to even |
| 3075 |
{0x1p-9f, chars_format::general, 4, "0.001953"}, |
| 3076 |
{0x1p-13f, chars_format::general, 4, "0.0001221"}, |
| 3077 |
{0x1p-16f, chars_format::general, 4, "1.526e-05"}, |
| 3078 |
{0x1p-19f, chars_format::general, 4, "1.907e-06"}, |
| 3079 |
|
| 3080 |
{5555555.0f, chars_format::general, 5, "5.5556e+06"}, |
| 3081 |
{555555.0f, chars_format::general, 5, "5.5556e+05"}, // round to even |
| 3082 |
{55555.0f, chars_format::general, 5, "55555"}, |
| 3083 |
{5555.0f, chars_format::general, 5, "5555"}, |
| 3084 |
{555.0f, chars_format::general, 5, "555"}, |
| 3085 |
{55.0f, chars_format::general, 5, "55"}, |
| 3086 |
{5.0f, chars_format::general, 5, "5"}, |
| 3087 |
{0x1p-3f, chars_format::general, 5, "0.125"}, |
| 3088 |
{0x1p-6f, chars_format::general, 5, "0.015625"}, |
| 3089 |
{0x1p-9f, chars_format::general, 5, "0.0019531"}, |
| 3090 |
{0x1p-13f, chars_format::general, 5, "0.00012207"}, |
| 3091 |
{0x1p-16f, chars_format::general, 5, "1.5259e-05"}, |
| 3092 |
{0x1p-19f, chars_format::general, 5, "1.9073e-06"}, |
| 3093 |
|
| 3094 |
// Tricky corner cases. |
| 3095 |
// In these scenarios, rounding can adjust the scientific exponent X, |
| 3096 |
// which affects the transition between fixed notation and scientific notation. |
| 3097 |
{999.999f, chars_format::general, 1, "1e+03"}, // "%.0e" is "1e+03"; X == 3 |
| 3098 |
{999.999f, chars_format::general, 2, "1e+03"}, // "%.1e" is "1.0e+03"; X == 3 |
| 3099 |
{999.999f, chars_format::general, 3, "1e+03"}, // "%.2e" is "1.00e+03"; X == 3 |
| 3100 |
{999.999f, chars_format::general, 4, "1000"}, // "%.3e" is "1.000e+03"; X == 3 |
| 3101 |
{999.999f, chars_format::general, 5, "1000"}, // "%.4e" is "1.0000e+03"; X == 3 |
| 3102 |
{999.999f, chars_format::general, 6, "999.999"}, // "%.5e" is "9.99999e+02"; X == 2 |
| 3103 |
|
| 3104 |
{999.99f, chars_format::general, 1, "1e+03"}, |
| 3105 |
{999.99f, chars_format::general, 2, "1e+03"}, |
| 3106 |
{999.99f, chars_format::general, 3, "1e+03"}, |
| 3107 |
{999.99f, chars_format::general, 4, "1000"}, |
| 3108 |
{999.99f, chars_format::general, 5, "999.99"}, |
| 3109 |
{999.99f, chars_format::general, 6, "999.99"}, |
| 3110 |
|
| 3111 |
// C11's Standardese is slightly vague about how to perform the trial formatting in scientific notation, |
| 3112 |
// but the intention is to use precision P - 1, which is what's used when scientific notation is actually chosen. |
| 3113 |
// This example verifies this behavior. Here, P == 3 performs trial formatting with "%.2e", triggering rounding. |
| 3114 |
// That increases X to 3, forcing scientific notation to be chosen. |
| 3115 |
// If P == 3 performed trial formatting with "%.3e", rounding wouldn't happen, |
| 3116 |
// X would be 2, and fixed notation would be chosen. |
| 3117 |
{999.9f, chars_format::general, 1, "1e+03"}, // "%.0e" is "1e+03"; X == 3 |
| 3118 |
{999.9f, chars_format::general, 2, "1e+03"}, // "%.1e" is "1.0e+03"; X == 3 |
| 3119 |
{999.9f, chars_format::general, 3, "1e+03"}, // "%.2e" is "1.00e+03"; X == 3; SPECIAL CORNER CASE |
| 3120 |
{999.9f, chars_format::general, 4, "999.9"}, // "%.3e" is "9.999e+02"; X == 2 |
| 3121 |
{999.9f, chars_format::general, 5, "999.9"}, // "%.4e" is "9.9990e+02"; X == 2 |
| 3122 |
{999.9f, chars_format::general, 6, "999.9"}, // "%.5e" is "9.99900e+02"; X == 2 |
| 3123 |
|
| 3124 |
{999.0f, chars_format::general, 1, "1e+03"}, |
| 3125 |
{999.0f, chars_format::general, 2, "1e+03"}, |
| 3126 |
{999.0f, chars_format::general, 3, "999"}, |
| 3127 |
{999.0f, chars_format::general, 4, "999"}, |
| 3128 |
{999.0f, chars_format::general, 5, "999"}, |
| 3129 |
{999.0f, chars_format::general, 6, "999"}, |
| 3130 |
|
| 3131 |
{99.9999f, chars_format::general, 1, "1e+02"}, |
| 3132 |
{99.9999f, chars_format::general, 2, "1e+02"}, |
| 3133 |
{99.9999f, chars_format::general, 3, "100"}, |
| 3134 |
{99.9999f, chars_format::general, 4, "100"}, |
| 3135 |
{99.9999f, chars_format::general, 5, "100"}, |
| 3136 |
{99.9999f, chars_format::general, 6, "99.9999"}, |
| 3137 |
|
| 3138 |
{99.999f, chars_format::general, 1, "1e+02"}, |
| 3139 |
{99.999f, chars_format::general, 2, "1e+02"}, |
| 3140 |
{99.999f, chars_format::general, 3, "100"}, |
| 3141 |
{99.999f, chars_format::general, 4, "100"}, |
| 3142 |
{99.999f, chars_format::general, 5, "99.999"}, |
| 3143 |
{99.999f, chars_format::general, 6, "99.999"}, |
| 3144 |
|
| 3145 |
{99.99f, chars_format::general, 1, "1e+02"}, |
| 3146 |
{99.99f, chars_format::general, 2, "1e+02"}, |
| 3147 |
{99.99f, chars_format::general, 3, "100"}, |
| 3148 |
{99.99f, chars_format::general, 4, "99.99"}, |
| 3149 |
{99.99f, chars_format::general, 5, "99.99"}, |
| 3150 |
{99.99f, chars_format::general, 6, "99.99"}, |
| 3151 |
|
| 3152 |
{99.9f, chars_format::general, 1, "1e+02"}, |
| 3153 |
{99.9f, chars_format::general, 2, "1e+02"}, |
| 3154 |
{99.9f, chars_format::general, 3, "99.9"}, |
| 3155 |
{99.9f, chars_format::general, 4, "99.9"}, |
| 3156 |
{99.9f, chars_format::general, 5, "99.9"}, |
| 3157 |
{99.9f, chars_format::general, 6, "99.9"}, |
| 3158 |
|
| 3159 |
{99.0f, chars_format::general, 1, "1e+02"}, |
| 3160 |
{99.0f, chars_format::general, 2, "99"}, |
| 3161 |
{99.0f, chars_format::general, 3, "99"}, |
| 3162 |
{99.0f, chars_format::general, 4, "99"}, |
| 3163 |
{99.0f, chars_format::general, 5, "99"}, |
| 3164 |
{99.0f, chars_format::general, 6, "99"}, |
| 3165 |
|
| 3166 |
{9.99999f, chars_format::general, 1, "1e+01"}, |
| 3167 |
{9.99999f, chars_format::general, 2, "10"}, |
| 3168 |
{9.99999f, chars_format::general, 3, "10"}, |
| 3169 |
{9.99999f, chars_format::general, 4, "10"}, |
| 3170 |
{9.99999f, chars_format::general, 5, "10"}, |
| 3171 |
{9.99999f, chars_format::general, 6, "9.99999"}, |
| 3172 |
|
| 3173 |
{9.9999f, chars_format::general, 1, "1e+01"}, |
| 3174 |
{9.9999f, chars_format::general, 2, "10"}, |
| 3175 |
{9.9999f, chars_format::general, 3, "10"}, |
| 3176 |
{9.9999f, chars_format::general, 4, "10"}, |
| 3177 |
{9.9999f, chars_format::general, 5, "9.9999"}, |
| 3178 |
{9.9999f, chars_format::general, 6, "9.9999"}, |
| 3179 |
|
| 3180 |
{9.999f, chars_format::general, 1, "1e+01"}, |
| 3181 |
{9.999f, chars_format::general, 2, "10"}, |
| 3182 |
{9.999f, chars_format::general, 3, "10"}, |
| 3183 |
{9.999f, chars_format::general, 4, "9.999"}, |
| 3184 |
{9.999f, chars_format::general, 5, "9.999"}, |
| 3185 |
{9.999f, chars_format::general, 6, "9.999"}, |
| 3186 |
|
| 3187 |
{9.99f, chars_format::general, 1, "1e+01"}, |
| 3188 |
{9.99f, chars_format::general, 2, "10"}, |
| 3189 |
{9.99f, chars_format::general, 3, "9.99"}, |
| 3190 |
{9.99f, chars_format::general, 4, "9.99"}, |
| 3191 |
{9.99f, chars_format::general, 5, "9.99"}, |
| 3192 |
{9.99f, chars_format::general, 6, "9.99"}, |
| 3193 |
|
| 3194 |
{9.9f, chars_format::general, 1, "1e+01"}, |
| 3195 |
{9.9f, chars_format::general, 2, "9.9"}, |
| 3196 |
{9.9f, chars_format::general, 3, "9.9"}, |
| 3197 |
{9.9f, chars_format::general, 4, "9.9"}, |
| 3198 |
{9.9f, chars_format::general, 5, "9.9"}, |
| 3199 |
{9.9f, chars_format::general, 6, "9.9"}, |
| 3200 |
|
| 3201 |
{9.0f, chars_format::general, 1, "9"}, |
| 3202 |
{9.0f, chars_format::general, 2, "9"}, |
| 3203 |
{9.0f, chars_format::general, 3, "9"}, |
| 3204 |
{9.0f, chars_format::general, 4, "9"}, |
| 3205 |
{9.0f, chars_format::general, 5, "9"}, |
| 3206 |
{9.0f, chars_format::general, 6, "9"}, |
| 3207 |
|
| 3208 |
{0.999999f, chars_format::general, 1, "1"}, |
| 3209 |
{0.999999f, chars_format::general, 2, "1"}, |
| 3210 |
{0.999999f, chars_format::general, 3, "1"}, |
| 3211 |
{0.999999f, chars_format::general, 4, "1"}, |
| 3212 |
{0.999999f, chars_format::general, 5, "1"}, |
| 3213 |
{0.999999f, chars_format::general, 6, "0.999999"}, |
| 3214 |
|
| 3215 |
{0.99999f, chars_format::general, 1, "1"}, |
| 3216 |
{0.99999f, chars_format::general, 2, "1"}, |
| 3217 |
{0.99999f, chars_format::general, 3, "1"}, |
| 3218 |
{0.99999f, chars_format::general, 4, "1"}, |
| 3219 |
{0.99999f, chars_format::general, 5, "0.99999"}, |
| 3220 |
{0.99999f, chars_format::general, 6, "0.99999"}, |
| 3221 |
|
| 3222 |
{0.9999f, chars_format::general, 1, "1"}, |
| 3223 |
{0.9999f, chars_format::general, 2, "1"}, |
| 3224 |
{0.9999f, chars_format::general, 3, "1"}, |
| 3225 |
{0.9999f, chars_format::general, 4, "0.9999"}, |
| 3226 |
{0.9999f, chars_format::general, 5, "0.9999"}, |
| 3227 |
{0.9999f, chars_format::general, 6, "0.9999"}, |
| 3228 |
|
| 3229 |
{0.999f, chars_format::general, 1, "1"}, |
| 3230 |
{0.999f, chars_format::general, 2, "1"}, |
| 3231 |
{0.999f, chars_format::general, 3, "0.999"}, |
| 3232 |
{0.999f, chars_format::general, 4, "0.999"}, |
| 3233 |
{0.999f, chars_format::general, 5, "0.999"}, |
| 3234 |
{0.999f, chars_format::general, 6, "0.999"}, |
| 3235 |
|
| 3236 |
{0.99f, chars_format::general, 1, "1"}, |
| 3237 |
{0.99f, chars_format::general, 2, "0.99"}, |
| 3238 |
{0.99f, chars_format::general, 3, "0.99"}, |
| 3239 |
{0.99f, chars_format::general, 4, "0.99"}, |
| 3240 |
{0.99f, chars_format::general, 5, "0.99"}, |
| 3241 |
{0.99f, chars_format::general, 6, "0.99"}, |
| 3242 |
|
| 3243 |
{0.9f, chars_format::general, 1, "0.9"}, |
| 3244 |
{0.9f, chars_format::general, 2, "0.9"}, |
| 3245 |
{0.9f, chars_format::general, 3, "0.9"}, |
| 3246 |
{0.9f, chars_format::general, 4, "0.9"}, |
| 3247 |
{0.9f, chars_format::general, 5, "0.9"}, |
| 3248 |
{0.9f, chars_format::general, 6, "0.9"}, |
| 3249 |
|
| 3250 |
{0.0999999f, chars_format::general, 1, "0.1"}, |
| 3251 |
{0.0999999f, chars_format::general, 2, "0.1"}, |
| 3252 |
{0.0999999f, chars_format::general, 3, "0.1"}, |
| 3253 |
{0.0999999f, chars_format::general, 4, "0.1"}, |
| 3254 |
{0.0999999f, chars_format::general, 5, "0.1"}, |
| 3255 |
{0.0999999f, chars_format::general, 6, "0.0999999"}, |
| 3256 |
|
| 3257 |
{0.099999f, chars_format::general, 1, "0.1"}, |
| 3258 |
{0.099999f, chars_format::general, 2, "0.1"}, |
| 3259 |
{0.099999f, chars_format::general, 3, "0.1"}, |
| 3260 |
{0.099999f, chars_format::general, 4, "0.1"}, |
| 3261 |
{0.099999f, chars_format::general, 5, "0.099999"}, |
| 3262 |
{0.099999f, chars_format::general, 6, "0.099999"}, |
| 3263 |
|
| 3264 |
{0.09999f, chars_format::general, 1, "0.1"}, |
| 3265 |
{0.09999f, chars_format::general, 2, "0.1"}, |
| 3266 |
{0.09999f, chars_format::general, 3, "0.1"}, |
| 3267 |
{0.09999f, chars_format::general, 4, "0.09999"}, |
| 3268 |
{0.09999f, chars_format::general, 5, "0.09999"}, |
| 3269 |
{0.09999f, chars_format::general, 6, "0.09999"}, |
| 3270 |
|
| 3271 |
{0.0999f, chars_format::general, 1, "0.1"}, |
| 3272 |
{0.0999f, chars_format::general, 2, "0.1"}, |
| 3273 |
{0.0999f, chars_format::general, 3, "0.0999"}, |
| 3274 |
{0.0999f, chars_format::general, 4, "0.0999"}, |
| 3275 |
{0.0999f, chars_format::general, 5, "0.0999"}, |
| 3276 |
{0.0999f, chars_format::general, 6, "0.0999"}, |
| 3277 |
|
| 3278 |
{0.099f, chars_format::general, 1, "0.1"}, |
| 3279 |
{0.099f, chars_format::general, 2, "0.099"}, |
| 3280 |
{0.099f, chars_format::general, 3, "0.099"}, |
| 3281 |
{0.099f, chars_format::general, 4, "0.099"}, |
| 3282 |
{0.099f, chars_format::general, 5, "0.099"}, |
| 3283 |
{0.099f, chars_format::general, 6, "0.099"}, |
| 3284 |
|
| 3285 |
{0.09f, chars_format::general, 1, "0.09"}, |
| 3286 |
{0.09f, chars_format::general, 2, "0.09"}, |
| 3287 |
{0.09f, chars_format::general, 3, "0.09"}, |
| 3288 |
{0.09f, chars_format::general, 4, "0.09"}, |
| 3289 |
{0.09f, chars_format::general, 5, "0.09"}, |
| 3290 |
{0.09f, chars_format::general, 6, "0.09"}, |
| 3291 |
|
| 3292 |
{0.00999999f, chars_format::general, 1, "0.01"}, |
| 3293 |
{0.00999999f, chars_format::general, 2, "0.01"}, |
| 3294 |
{0.00999999f, chars_format::general, 3, "0.01"}, |
| 3295 |
{0.00999999f, chars_format::general, 4, "0.01"}, |
| 3296 |
{0.00999999f, chars_format::general, 5, "0.01"}, |
| 3297 |
{0.00999999f, chars_format::general, 6, "0.00999999"}, |
| 3298 |
|
| 3299 |
{0.0099999f, chars_format::general, 1, "0.01"}, |
| 3300 |
{0.0099999f, chars_format::general, 2, "0.01"}, |
| 3301 |
{0.0099999f, chars_format::general, 3, "0.01"}, |
| 3302 |
{0.0099999f, chars_format::general, 4, "0.01"}, |
| 3303 |
{0.0099999f, chars_format::general, 5, "0.0099999"}, |
| 3304 |
{0.0099999f, chars_format::general, 6, "0.0099999"}, |
| 3305 |
|
| 3306 |
{0.009999f, chars_format::general, 1, "0.01"}, |
| 3307 |
{0.009999f, chars_format::general, 2, "0.01"}, |
| 3308 |
{0.009999f, chars_format::general, 3, "0.01"}, |
| 3309 |
{0.009999f, chars_format::general, 4, "0.009999"}, |
| 3310 |
{0.009999f, chars_format::general, 5, "0.009999"}, |
| 3311 |
{0.009999f, chars_format::general, 6, "0.009999"}, |
| 3312 |
|
| 3313 |
{0.00999f, chars_format::general, 1, "0.01"}, |
| 3314 |
{0.00999f, chars_format::general, 2, "0.01"}, |
| 3315 |
{0.00999f, chars_format::general, 3, "0.00999"}, |
| 3316 |
{0.00999f, chars_format::general, 4, "0.00999"}, |
| 3317 |
{0.00999f, chars_format::general, 5, "0.00999"}, |
| 3318 |
{0.00999f, chars_format::general, 6, "0.00999"}, |
| 3319 |
|
| 3320 |
{0.0099f, chars_format::general, 1, "0.01"}, |
| 3321 |
{0.0099f, chars_format::general, 2, "0.0099"}, |
| 3322 |
{0.0099f, chars_format::general, 3, "0.0099"}, |
| 3323 |
{0.0099f, chars_format::general, 4, "0.0099"}, |
| 3324 |
{0.0099f, chars_format::general, 5, "0.0099"}, |
| 3325 |
{0.0099f, chars_format::general, 6, "0.0099"}, |
| 3326 |
|
| 3327 |
{0.009f, chars_format::general, 1, "0.009"}, |
| 3328 |
{0.009f, chars_format::general, 2, "0.009"}, |
| 3329 |
{0.009f, chars_format::general, 3, "0.009"}, |
| 3330 |
{0.009f, chars_format::general, 4, "0.009"}, |
| 3331 |
{0.009f, chars_format::general, 5, "0.009"}, |
| 3332 |
{0.009f, chars_format::general, 6, "0.009"}, |
| 3333 |
|
| 3334 |
{0.000999999f, chars_format::general, 1, "0.001"}, |
| 3335 |
{0.000999999f, chars_format::general, 2, "0.001"}, |
| 3336 |
{0.000999999f, chars_format::general, 3, "0.001"}, |
| 3337 |
{0.000999999f, chars_format::general, 4, "0.001"}, |
| 3338 |
{0.000999999f, chars_format::general, 5, "0.001"}, |
| 3339 |
{0.000999999f, chars_format::general, 6, "0.000999999"}, |
| 3340 |
|
| 3341 |
{0.00099999f, chars_format::general, 1, "0.001"}, |
| 3342 |
{0.00099999f, chars_format::general, 2, "0.001"}, |
| 3343 |
{0.00099999f, chars_format::general, 3, "0.001"}, |
| 3344 |
{0.00099999f, chars_format::general, 4, "0.001"}, |
| 3345 |
{0.00099999f, chars_format::general, 5, "0.00099999"}, |
| 3346 |
{0.00099999f, chars_format::general, 6, "0.00099999"}, |
| 3347 |
|
| 3348 |
{0.0009999f, chars_format::general, 1, "0.001"}, |
| 3349 |
{0.0009999f, chars_format::general, 2, "0.001"}, |
| 3350 |
{0.0009999f, chars_format::general, 3, "0.001"}, |
| 3351 |
{0.0009999f, chars_format::general, 4, "0.0009999"}, |
| 3352 |
{0.0009999f, chars_format::general, 5, "0.0009999"}, |
| 3353 |
{0.0009999f, chars_format::general, 6, "0.0009999"}, |
| 3354 |
|
| 3355 |
{0.000999f, chars_format::general, 1, "0.001"}, |
| 3356 |
{0.000999f, chars_format::general, 2, "0.001"}, |
| 3357 |
{0.000999f, chars_format::general, 3, "0.000999"}, |
| 3358 |
{0.000999f, chars_format::general, 4, "0.000999"}, |
| 3359 |
{0.000999f, chars_format::general, 5, "0.000999"}, |
| 3360 |
{0.000999f, chars_format::general, 6, "0.000999"}, |
| 3361 |
|
| 3362 |
{0.00099f, chars_format::general, 1, "0.001"}, |
| 3363 |
{0.00099f, chars_format::general, 2, "0.00099"}, |
| 3364 |
{0.00099f, chars_format::general, 3, "0.00099"}, |
| 3365 |
{0.00099f, chars_format::general, 4, "0.00099"}, |
| 3366 |
{0.00099f, chars_format::general, 5, "0.00099"}, |
| 3367 |
{0.00099f, chars_format::general, 6, "0.00099"}, |
| 3368 |
|
| 3369 |
{0.0009f, chars_format::general, 1, "0.0009"}, |
| 3370 |
{0.0009f, chars_format::general, 2, "0.0009"}, |
| 3371 |
{0.0009f, chars_format::general, 3, "0.0009"}, |
| 3372 |
{0.0009f, chars_format::general, 4, "0.0009"}, |
| 3373 |
{0.0009f, chars_format::general, 5, "0.0009"}, |
| 3374 |
{0.0009f, chars_format::general, 6, "0.0009"}, |
| 3375 |
|
| 3376 |
// Having a scientific exponent X == -5 triggers scientific notation. |
| 3377 |
// If rounding adjusts this to X == -4, then fixed notation will be selected. |
| 3378 |
{0.0000999999f, chars_format::general, 1, "0.0001"}, |
| 3379 |
{0.0000999999f, chars_format::general, 2, "0.0001"}, |
| 3380 |
{0.0000999999f, chars_format::general, 3, "0.0001"}, |
| 3381 |
{0.0000999999f, chars_format::general, 4, "0.0001"}, |
| 3382 |
{0.0000999999f, chars_format::general, 5, "0.0001"}, |
| 3383 |
{0.0000999999f, chars_format::general, 6, "9.99999e-05"}, |
| 3384 |
|
| 3385 |
{0.000099999f, chars_format::general, 1, "0.0001"}, |
| 3386 |
{0.000099999f, chars_format::general, 2, "0.0001"}, |
| 3387 |
{0.000099999f, chars_format::general, 3, "0.0001"}, |
| 3388 |
{0.000099999f, chars_format::general, 4, "0.0001"}, |
| 3389 |
{0.000099999f, chars_format::general, 5, "9.9999e-05"}, |
| 3390 |
{0.000099999f, chars_format::general, 6, "9.9999e-05"}, |
| 3391 |
|
| 3392 |
{0.00009999f, chars_format::general, 1, "0.0001"}, |
| 3393 |
{0.00009999f, chars_format::general, 2, "0.0001"}, |
| 3394 |
{0.00009999f, chars_format::general, 3, "0.0001"}, |
| 3395 |
{0.00009999f, chars_format::general, 4, "9.999e-05"}, |
| 3396 |
{0.00009999f, chars_format::general, 5, "9.999e-05"}, |
| 3397 |
{0.00009999f, chars_format::general, 6, "9.999e-05"}, |
| 3398 |
|
| 3399 |
{0.0000999f, chars_format::general, 1, "0.0001"}, |
| 3400 |
{0.0000999f, chars_format::general, 2, "0.0001"}, |
| 3401 |
{0.0000999f, chars_format::general, 3, "9.99e-05"}, |
| 3402 |
{0.0000999f, chars_format::general, 4, "9.99e-05"}, |
| 3403 |
{0.0000999f, chars_format::general, 5, "9.99e-05"}, |
| 3404 |
{0.0000999f, chars_format::general, 6, "9.99e-05"}, |
| 3405 |
|
| 3406 |
{0.000099f, chars_format::general, 1, "0.0001"}, |
| 3407 |
{0.000099f, chars_format::general, 2, "9.9e-05"}, |
| 3408 |
{0.000099f, chars_format::general, 3, "9.9e-05"}, |
| 3409 |
{0.000099f, chars_format::general, 4, "9.9e-05"}, |
| 3410 |
{0.000099f, chars_format::general, 5, "9.9e-05"}, |
| 3411 |
{0.000099f, chars_format::general, 6, "9.9e-05"}, |
| 3412 |
|
| 3413 |
{0.00009f, chars_format::general, 1, "9e-05"}, |
| 3414 |
{0.00009f, chars_format::general, 2, "9e-05"}, |
| 3415 |
{0.00009f, chars_format::general, 3, "9e-05"}, |
| 3416 |
{0.00009f, chars_format::general, 4, "9e-05"}, |
| 3417 |
{0.00009f, chars_format::general, 5, "9e-05"}, |
| 3418 |
{0.00009f, chars_format::general, 6, "9e-05"}, |
| 3419 |
|
| 3420 |
// Rounding test cases without exponent-adjusting behavior. |
| 3421 |
{2999.999f, chars_format::general, 1, "3e+03"}, |
| 3422 |
{2999.999f, chars_format::general, 2, "3e+03"}, |
| 3423 |
{2999.999f, chars_format::general, 3, "3e+03"}, |
| 3424 |
{2999.999f, chars_format::general, 4, "3000"}, |
| 3425 |
{2999.999f, chars_format::general, 5, "3000"}, |
| 3426 |
{2999.999f, chars_format::general, 6, "3000"}, |
| 3427 |
|
| 3428 |
{2999.99f, chars_format::general, 1, "3e+03"}, |
| 3429 |
{2999.99f, chars_format::general, 2, "3e+03"}, |
| 3430 |
{2999.99f, chars_format::general, 3, "3e+03"}, |
| 3431 |
{2999.99f, chars_format::general, 4, "3000"}, |
| 3432 |
{2999.99f, chars_format::general, 5, "3000"}, |
| 3433 |
{2999.99f, chars_format::general, 6, "2999.99"}, |
| 3434 |
|
| 3435 |
{2999.9f, chars_format::general, 1, "3e+03"}, |
| 3436 |
{2999.9f, chars_format::general, 2, "3e+03"}, |
| 3437 |
{2999.9f, chars_format::general, 3, "3e+03"}, |
| 3438 |
{2999.9f, chars_format::general, 4, "3000"}, |
| 3439 |
{2999.9f, chars_format::general, 5, "2999.9"}, |
| 3440 |
{2999.9f, chars_format::general, 6, "2999.9"}, |
| 3441 |
|
| 3442 |
{2999.0f, chars_format::general, 1, "3e+03"}, |
| 3443 |
{2999.0f, chars_format::general, 2, "3e+03"}, |
| 3444 |
{2999.0f, chars_format::general, 3, "3e+03"}, |
| 3445 |
{2999.0f, chars_format::general, 4, "2999"}, |
| 3446 |
{2999.0f, chars_format::general, 5, "2999"}, |
| 3447 |
{2999.0f, chars_format::general, 6, "2999"}, |
| 3448 |
|
| 3449 |
{299.999f, chars_format::general, 1, "3e+02"}, |
| 3450 |
{299.999f, chars_format::general, 2, "3e+02"}, |
| 3451 |
{299.999f, chars_format::general, 3, "300"}, |
| 3452 |
{299.999f, chars_format::general, 4, "300"}, |
| 3453 |
{299.999f, chars_format::general, 5, "300"}, |
| 3454 |
{299.999f, chars_format::general, 6, "299.999"}, |
| 3455 |
|
| 3456 |
{299.99f, chars_format::general, 1, "3e+02"}, |
| 3457 |
{299.99f, chars_format::general, 2, "3e+02"}, |
| 3458 |
{299.99f, chars_format::general, 3, "300"}, |
| 3459 |
{299.99f, chars_format::general, 4, "300"}, |
| 3460 |
{299.99f, chars_format::general, 5, "299.99"}, |
| 3461 |
{299.99f, chars_format::general, 6, "299.99"}, |
| 3462 |
|
| 3463 |
{299.9f, chars_format::general, 1, "3e+02"}, |
| 3464 |
{299.9f, chars_format::general, 2, "3e+02"}, |
| 3465 |
{299.9f, chars_format::general, 3, "300"}, |
| 3466 |
{299.9f, chars_format::general, 4, "299.9"}, |
| 3467 |
{299.9f, chars_format::general, 5, "299.9"}, |
| 3468 |
{299.9f, chars_format::general, 6, "299.9"}, |
| 3469 |
|
| 3470 |
{299.0f, chars_format::general, 1, "3e+02"}, |
| 3471 |
{299.0f, chars_format::general, 2, "3e+02"}, |
| 3472 |
{299.0f, chars_format::general, 3, "299"}, |
| 3473 |
{299.0f, chars_format::general, 4, "299"}, |
| 3474 |
{299.0f, chars_format::general, 5, "299"}, |
| 3475 |
{299.0f, chars_format::general, 6, "299"}, |
| 3476 |
|
| 3477 |
{29.999f, chars_format::general, 1, "3e+01"}, |
| 3478 |
{29.999f, chars_format::general, 2, "30"}, |
| 3479 |
{29.999f, chars_format::general, 3, "30"}, |
| 3480 |
{29.999f, chars_format::general, 4, "30"}, |
| 3481 |
{29.999f, chars_format::general, 5, "29.999"}, |
| 3482 |
{29.999f, chars_format::general, 6, "29.999"}, |
| 3483 |
|
| 3484 |
{29.99f, chars_format::general, 1, "3e+01"}, |
| 3485 |
{29.99f, chars_format::general, 2, "30"}, |
| 3486 |
{29.99f, chars_format::general, 3, "30"}, |
| 3487 |
{29.99f, chars_format::general, 4, "29.99"}, |
| 3488 |
{29.99f, chars_format::general, 5, "29.99"}, |
| 3489 |
{29.99f, chars_format::general, 6, "29.99"}, |
| 3490 |
|
| 3491 |
{29.9f, chars_format::general, 1, "3e+01"}, |
| 3492 |
{29.9f, chars_format::general, 2, "30"}, |
| 3493 |
{29.9f, chars_format::general, 3, "29.9"}, |
| 3494 |
{29.9f, chars_format::general, 4, "29.9"}, |
| 3495 |
{29.9f, chars_format::general, 5, "29.9"}, |
| 3496 |
{29.9f, chars_format::general, 6, "29.9"}, |
| 3497 |
|
| 3498 |
{29.0f, chars_format::general, 1, "3e+01"}, |
| 3499 |
{29.0f, chars_format::general, 2, "29"}, |
| 3500 |
{29.0f, chars_format::general, 3, "29"}, |
| 3501 |
{29.0f, chars_format::general, 4, "29"}, |
| 3502 |
{29.0f, chars_format::general, 5, "29"}, |
| 3503 |
{29.0f, chars_format::general, 6, "29"}, |
| 3504 |
|
| 3505 |
{2.999f, chars_format::general, 1, "3"}, |
| 3506 |
{2.999f, chars_format::general, 2, "3"}, |
| 3507 |
{2.999f, chars_format::general, 3, "3"}, |
| 3508 |
{2.999f, chars_format::general, 4, "2.999"}, |
| 3509 |
{2.999f, chars_format::general, 5, "2.999"}, |
| 3510 |
{2.999f, chars_format::general, 6, "2.999"}, |
| 3511 |
|
| 3512 |
{2.99f, chars_format::general, 1, "3"}, |
| 3513 |
{2.99f, chars_format::general, 2, "3"}, |
| 3514 |
{2.99f, chars_format::general, 3, "2.99"}, |
| 3515 |
{2.99f, chars_format::general, 4, "2.99"}, |
| 3516 |
{2.99f, chars_format::general, 5, "2.99"}, |
| 3517 |
{2.99f, chars_format::general, 6, "2.99"}, |
| 3518 |
|
| 3519 |
{2.9f, chars_format::general, 1, "3"}, |
| 3520 |
{2.9f, chars_format::general, 2, "2.9"}, |
| 3521 |
{2.9f, chars_format::general, 3, "2.9"}, |
| 3522 |
{2.9f, chars_format::general, 4, "2.9"}, |
| 3523 |
{2.9f, chars_format::general, 5, "2.9"}, |
| 3524 |
{2.9f, chars_format::general, 6, "2.9"}, |
| 3525 |
|
| 3526 |
{2.0f, chars_format::general, 1, "2"}, |
| 3527 |
{2.0f, chars_format::general, 2, "2"}, |
| 3528 |
{2.0f, chars_format::general, 3, "2"}, |
| 3529 |
{2.0f, chars_format::general, 4, "2"}, |
| 3530 |
{2.0f, chars_format::general, 5, "2"}, |
| 3531 |
{2.0f, chars_format::general, 6, "2"}, |
| 3532 |
|
| 3533 |
{0.2999f, chars_format::general, 1, "0.3"}, |
| 3534 |
{0.2999f, chars_format::general, 2, "0.3"}, |
| 3535 |
{0.2999f, chars_format::general, 3, "0.3"}, |
| 3536 |
{0.2999f, chars_format::general, 4, "0.2999"}, |
| 3537 |
{0.2999f, chars_format::general, 5, "0.2999"}, |
| 3538 |
{0.2999f, chars_format::general, 6, "0.2999"}, |
| 3539 |
|
| 3540 |
{0.299f, chars_format::general, 1, "0.3"}, |
| 3541 |
{0.299f, chars_format::general, 2, "0.3"}, |
| 3542 |
{0.299f, chars_format::general, 3, "0.299"}, |
| 3543 |
{0.299f, chars_format::general, 4, "0.299"}, |
| 3544 |
{0.299f, chars_format::general, 5, "0.299"}, |
| 3545 |
{0.299f, chars_format::general, 6, "0.299"}, |
| 3546 |
|
| 3547 |
{0.29f, chars_format::general, 1, "0.3"}, |
| 3548 |
{0.29f, chars_format::general, 2, "0.29"}, |
| 3549 |
{0.29f, chars_format::general, 3, "0.29"}, |
| 3550 |
{0.29f, chars_format::general, 4, "0.29"}, |
| 3551 |
{0.29f, chars_format::general, 5, "0.29"}, |
| 3552 |
{0.29f, chars_format::general, 6, "0.29"}, |
| 3553 |
|
| 3554 |
{0.2f, chars_format::general, 1, "0.2"}, |
| 3555 |
{0.2f, chars_format::general, 2, "0.2"}, |
| 3556 |
{0.2f, chars_format::general, 3, "0.2"}, |
| 3557 |
{0.2f, chars_format::general, 4, "0.2"}, |
| 3558 |
{0.2f, chars_format::general, 5, "0.2"}, |
| 3559 |
{0.2f, chars_format::general, 6, "0.2"}, |
| 3560 |
|
| 3561 |
{0.02999f, chars_format::general, 1, "0.03"}, |
| 3562 |
{0.02999f, chars_format::general, 2, "0.03"}, |
| 3563 |
{0.02999f, chars_format::general, 3, "0.03"}, |
| 3564 |
{0.02999f, chars_format::general, 4, "0.02999"}, |
| 3565 |
{0.02999f, chars_format::general, 5, "0.02999"}, |
| 3566 |
{0.02999f, chars_format::general, 6, "0.02999"}, |
| 3567 |
|
| 3568 |
{0.0299f, chars_format::general, 1, "0.03"}, |
| 3569 |
{0.0299f, chars_format::general, 2, "0.03"}, |
| 3570 |
{0.0299f, chars_format::general, 3, "0.0299"}, |
| 3571 |
{0.0299f, chars_format::general, 4, "0.0299"}, |
| 3572 |
{0.0299f, chars_format::general, 5, "0.0299"}, |
| 3573 |
{0.0299f, chars_format::general, 6, "0.0299"}, |
| 3574 |
|
| 3575 |
{0.029f, chars_format::general, 1, "0.03"}, |
| 3576 |
{0.029f, chars_format::general, 2, "0.029"}, |
| 3577 |
{0.029f, chars_format::general, 3, "0.029"}, |
| 3578 |
{0.029f, chars_format::general, 4, "0.029"}, |
| 3579 |
{0.029f, chars_format::general, 5, "0.029"}, |
| 3580 |
{0.029f, chars_format::general, 6, "0.029"}, |
| 3581 |
|
| 3582 |
{0.02f, chars_format::general, 1, "0.02"}, |
| 3583 |
{0.02f, chars_format::general, 2, "0.02"}, |
| 3584 |
{0.02f, chars_format::general, 3, "0.02"}, |
| 3585 |
{0.02f, chars_format::general, 4, "0.02"}, |
| 3586 |
{0.02f, chars_format::general, 5, "0.02"}, |
| 3587 |
{0.02f, chars_format::general, 6, "0.02"}, |
| 3588 |
|
| 3589 |
{0.002999f, chars_format::general, 1, "0.003"}, |
| 3590 |
{0.002999f, chars_format::general, 2, "0.003"}, |
| 3591 |
{0.002999f, chars_format::general, 3, "0.003"}, |
| 3592 |
{0.002999f, chars_format::general, 4, "0.002999"}, |
| 3593 |
{0.002999f, chars_format::general, 5, "0.002999"}, |
| 3594 |
{0.002999f, chars_format::general, 6, "0.002999"}, |
| 3595 |
|
| 3596 |
{0.00299f, chars_format::general, 1, "0.003"}, |
| 3597 |
{0.00299f, chars_format::general, 2, "0.003"}, |
| 3598 |
{0.00299f, chars_format::general, 3, "0.00299"}, |
| 3599 |
{0.00299f, chars_format::general, 4, "0.00299"}, |
| 3600 |
{0.00299f, chars_format::general, 5, "0.00299"}, |
| 3601 |
{0.00299f, chars_format::general, 6, "0.00299"}, |
| 3602 |
|
| 3603 |
{0.0029f, chars_format::general, 1, "0.003"}, |
| 3604 |
{0.0029f, chars_format::general, 2, "0.0029"}, |
| 3605 |
{0.0029f, chars_format::general, 3, "0.0029"}, |
| 3606 |
{0.0029f, chars_format::general, 4, "0.0029"}, |
| 3607 |
{0.0029f, chars_format::general, 5, "0.0029"}, |
| 3608 |
{0.0029f, chars_format::general, 6, "0.0029"}, |
| 3609 |
|
| 3610 |
{0.002f, chars_format::general, 1, "0.002"}, |
| 3611 |
{0.002f, chars_format::general, 2, "0.002"}, |
| 3612 |
{0.002f, chars_format::general, 3, "0.002"}, |
| 3613 |
{0.002f, chars_format::general, 4, "0.002"}, |
| 3614 |
{0.002f, chars_format::general, 5, "0.002"}, |
| 3615 |
{0.002f, chars_format::general, 6, "0.002"}, |
| 3616 |
|
| 3617 |
{0.0002999f, chars_format::general, 1, "0.0003"}, |
| 3618 |
{0.0002999f, chars_format::general, 2, "0.0003"}, |
| 3619 |
{0.0002999f, chars_format::general, 3, "0.0003"}, |
| 3620 |
{0.0002999f, chars_format::general, 4, "0.0002999"}, |
| 3621 |
{0.0002999f, chars_format::general, 5, "0.0002999"}, |
| 3622 |
{0.0002999f, chars_format::general, 6, "0.0002999"}, |
| 3623 |
|
| 3624 |
{0.000299f, chars_format::general, 1, "0.0003"}, |
| 3625 |
{0.000299f, chars_format::general, 2, "0.0003"}, |
| 3626 |
{0.000299f, chars_format::general, 3, "0.000299"}, |
| 3627 |
{0.000299f, chars_format::general, 4, "0.000299"}, |
| 3628 |
{0.000299f, chars_format::general, 5, "0.000299"}, |
| 3629 |
{0.000299f, chars_format::general, 6, "0.000299"}, |
| 3630 |
|
| 3631 |
{0.00029f, chars_format::general, 1, "0.0003"}, |
| 3632 |
{0.00029f, chars_format::general, 2, "0.00029"}, |
| 3633 |
{0.00029f, chars_format::general, 3, "0.00029"}, |
| 3634 |
{0.00029f, chars_format::general, 4, "0.00029"}, |
| 3635 |
{0.00029f, chars_format::general, 5, "0.00029"}, |
| 3636 |
{0.00029f, chars_format::general, 6, "0.00029"}, |
| 3637 |
|
| 3638 |
{0.0002f, chars_format::general, 1, "0.0002"}, |
| 3639 |
{0.0002f, chars_format::general, 2, "0.0002"}, |
| 3640 |
{0.0002f, chars_format::general, 3, "0.0002"}, |
| 3641 |
{0.0002f, chars_format::general, 4, "0.0002"}, |
| 3642 |
{0.0002f, chars_format::general, 5, "0.0002"}, |
| 3643 |
{0.0002f, chars_format::general, 6, "0.0002"}, |
| 3644 |
|
| 3645 |
{0.00002999f, chars_format::general, 1, "3e-05"}, |
| 3646 |
{0.00002999f, chars_format::general, 2, "3e-05"}, |
| 3647 |
{0.00002999f, chars_format::general, 3, "3e-05"}, |
| 3648 |
{0.00002999f, chars_format::general, 4, "2.999e-05"}, |
| 3649 |
{0.00002999f, chars_format::general, 5, "2.999e-05"}, |
| 3650 |
{0.00002999f, chars_format::general, 6, "2.999e-05"}, |
| 3651 |
|
| 3652 |
{0.0000299f, chars_format::general, 1, "3e-05"}, |
| 3653 |
{0.0000299f, chars_format::general, 2, "3e-05"}, |
| 3654 |
{0.0000299f, chars_format::general, 3, "2.99e-05"}, |
| 3655 |
{0.0000299f, chars_format::general, 4, "2.99e-05"}, |
| 3656 |
{0.0000299f, chars_format::general, 5, "2.99e-05"}, |
| 3657 |
{0.0000299f, chars_format::general, 6, "2.99e-05"}, |
| 3658 |
|
| 3659 |
{0.000029f, chars_format::general, 1, "3e-05"}, |
| 3660 |
{0.000029f, chars_format::general, 2, "2.9e-05"}, |
| 3661 |
{0.000029f, chars_format::general, 3, "2.9e-05"}, |
| 3662 |
{0.000029f, chars_format::general, 4, "2.9e-05"}, |
| 3663 |
{0.000029f, chars_format::general, 5, "2.9e-05"}, |
| 3664 |
{0.000029f, chars_format::general, 6, "2.9e-05"}, |
| 3665 |
|
| 3666 |
{0.00002f, chars_format::general, 1, "2e-05"}, |
| 3667 |
{0.00002f, chars_format::general, 2, "2e-05"}, |
| 3668 |
{0.00002f, chars_format::general, 3, "2e-05"}, |
| 3669 |
{0.00002f, chars_format::general, 4, "2e-05"}, |
| 3670 |
{0.00002f, chars_format::general, 5, "2e-05"}, |
| 3671 |
{0.00002f, chars_format::general, 6, "2e-05"}, |
| 3672 |
|
| 3673 |
// Test the transitions between values of the scientific exponent X. |
| 3674 |
// For brevity, we avoid testing all possible combinations of P and X. Instead, we test: |
| 3675 |
// * All values of P where some X can be affected by rounding. (For float, this is [1, 7].) |
| 3676 |
// * P == 25, which is arbitrary. |
| 3677 |
// * P == numeric_limits::max_exponent10 + 1. This selects fixed notation for numeric_limits::max(), |
| 3678 |
// so it's the largest interesting value of P. |
| 3679 |
// * Finally, we test the transitions around X == P - 1, ensuring that we can recognize every value of X. |
| 3680 |
{0x1.8e7578p-14f, chars_format::general, 1, "9e-05"}, |
| 3681 |
{0x1.8e757ap-14f, chars_format::general, 1, "0.0001"}, |
| 3682 |
{0x1.f212d6p-11f, chars_format::general, 1, "0.0009"}, |
| 3683 |
{0x1.f212d8p-11f, chars_format::general, 1, "0.001"}, |
| 3684 |
{0x1.374bc6p-7f, chars_format::general, 1, "0.009"}, |
| 3685 |
{0x1.374bc8p-7f, chars_format::general, 1, "0.01"}, |
| 3686 |
{0x1.851eb8p-4f, chars_format::general, 1, "0.09"}, |
| 3687 |
{0x1.851ebap-4f, chars_format::general, 1, "0.1"}, |
| 3688 |
{0x1.e66666p-1f, chars_format::general, 1, "0.9"}, |
| 3689 |
{0x1.e66668p-1f, chars_format::general, 1, "1"}, |
| 3690 |
{0x1.2ffffep+3f, chars_format::general, 1, "9"}, |
| 3691 |
{0x1.300000p+3f, chars_format::general, 1, "1e+01"}, |
| 3692 |
{0x1.a1554ep-14f, chars_format::general, 2, "9.9e-05"}, |
| 3693 |
{0x1.a15550p-14f, chars_format::general, 2, "0.0001"}, |
| 3694 |
{0x1.04d550p-10f, chars_format::general, 2, "0.00099"}, |
| 3695 |
{0x1.04d552p-10f, chars_format::general, 2, "0.001"}, |
| 3696 |
{0x1.460aa6p-7f, chars_format::general, 2, "0.0099"}, |
| 3697 |
{0x1.460aa8p-7f, chars_format::general, 2, "0.01"}, |
| 3698 |
{0x1.978d4ep-4f, chars_format::general, 2, "0.099"}, |
| 3699 |
{0x1.978d50p-4f, chars_format::general, 2, "0.1"}, |
| 3700 |
{0x1.fd70a2p-1f, chars_format::general, 2, "0.99"}, |
| 3701 |
{0x1.fd70a4p-1f, chars_format::general, 2, "1"}, |
| 3702 |
{0x1.3e6666p+3f, chars_format::general, 2, "9.9"}, |
| 3703 |
{0x1.3e6668p+3f, chars_format::general, 2, "10"}, |
| 3704 |
{0x1.8dfffep+6f, chars_format::general, 2, "99"}, |
| 3705 |
{0x1.8e0000p+6f, chars_format::general, 2, "1e+02"}, |
| 3706 |
{0x1.a3387ep-14f, chars_format::general, 3, "9.99e-05"}, |
| 3707 |
{0x1.a33880p-14f, chars_format::general, 3, "0.0001"}, |
| 3708 |
{0x1.06034ep-10f, chars_format::general, 3, "0.000999"}, |
| 3709 |
{0x1.060350p-10f, chars_format::general, 3, "0.001"}, |
| 3710 |
{0x1.478422p-7f, chars_format::general, 3, "0.00999"}, |
| 3711 |
{0x1.478424p-7f, chars_format::general, 3, "0.01"}, |
| 3712 |
{0x1.99652ap-4f, chars_format::general, 3, "0.0999"}, |
| 3713 |
{0x1.99652cp-4f, chars_format::general, 3, "0.1"}, |
| 3714 |
{0x1.ffbe76p-1f, chars_format::general, 3, "0.999"}, |
| 3715 |
{0x1.ffbe78p-1f, chars_format::general, 3, "1"}, |
| 3716 |
{0x1.3fd70ap+3f, chars_format::general, 3, "9.99"}, |
| 3717 |
{0x1.3fd70cp+3f, chars_format::general, 3, "10"}, |
| 3718 |
{0x1.8fccccp+6f, chars_format::general, 3, "99.9"}, |
| 3719 |
{0x1.8fcccep+6f, chars_format::general, 3, "100"}, |
| 3720 |
{0x1.f3bffep+9f, chars_format::general, 3, "999"}, |
| 3721 |
{0x1.f3c000p+9f, chars_format::general, 3, "1e+03"}, |
| 3722 |
{0x1.a368d0p-14f, chars_format::general, 4, "9.999e-05"}, |
| 3723 |
{0x1.a368d2p-14f, chars_format::general, 4, "0.0001"}, |
| 3724 |
{0x1.062182p-10f, chars_format::general, 4, "0.0009999"}, |
| 3725 |
{0x1.062184p-10f, chars_format::general, 4, "0.001"}, |
| 3726 |
{0x1.47a9e2p-7f, chars_format::general, 4, "0.009999"}, |
| 3727 |
{0x1.47a9e4p-7f, chars_format::general, 4, "0.01"}, |
| 3728 |
{0x1.99945ap-4f, chars_format::general, 4, "0.09999"}, |
| 3729 |
{0x1.99945cp-4f, chars_format::general, 4, "0.1"}, |
| 3730 |
{0x1.fff972p-1f, chars_format::general, 4, "0.9999"}, |
| 3731 |
{0x1.fff974p-1f, chars_format::general, 4, "1"}, |
| 3732 |
{0x1.3ffbe6p+3f, chars_format::general, 4, "9.999"}, |
| 3733 |
{0x1.3ffbe8p+3f, chars_format::general, 4, "10"}, |
| 3734 |
{0x1.8ffae0p+6f, chars_format::general, 4, "99.99"}, |
| 3735 |
{0x1.8ffae2p+6f, chars_format::general, 4, "100"}, |
| 3736 |
{0x1.f3f998p+9f, chars_format::general, 4, "999.9"}, |
| 3737 |
{0x1.f3f99ap+9f, chars_format::general, 4, "1000"}, |
| 3738 |
{0x1.387bfep+13f, chars_format::general, 4, "9999"}, |
| 3739 |
{0x1.387c00p+13f, chars_format::general, 4, "1e+04"}, |
| 3740 |
{0x1.a36da4p-14f, chars_format::general, 5, "9.9999e-05"}, |
| 3741 |
{0x1.a36da6p-14f, chars_format::general, 5, "0.0001"}, |
| 3742 |
{0x1.062486p-10f, chars_format::general, 5, "0.00099999"}, |
| 3743 |
{0x1.062488p-10f, chars_format::general, 5, "0.001"}, |
| 3744 |
{0x1.47ada8p-7f, chars_format::general, 5, "0.0099999"}, |
| 3745 |
{0x1.47adaap-7f, chars_format::general, 5, "0.01"}, |
| 3746 |
{0x1.999912p-4f, chars_format::general, 5, "0.099999"}, |
| 3747 |
{0x1.999914p-4f, chars_format::general, 5, "0.1"}, |
| 3748 |
{0x1.ffff58p-1f, chars_format::general, 5, "0.99999"}, |
| 3749 |
{0x1.ffff5ap-1f, chars_format::general, 5, "1"}, |
| 3750 |
{0x1.3fff96p+3f, chars_format::general, 5, "9.9999"}, |
| 3751 |
{0x1.3fff98p+3f, chars_format::general, 5, "10"}, |
| 3752 |
{0x1.8fff7cp+6f, chars_format::general, 5, "99.999"}, |
| 3753 |
{0x1.8fff7ep+6f, chars_format::general, 5, "100"}, |
| 3754 |
{0x1.f3ff5cp+9f, chars_format::general, 5, "999.99"}, |
| 3755 |
{0x1.f3ff5ep+9f, chars_format::general, 5, "1000"}, |
| 3756 |
{0x1.387f98p+13f, chars_format::general, 5, "9999.9"}, |
| 3757 |
{0x1.387f9ap+13f, chars_format::general, 5, "10000"}, |
| 3758 |
{0x1.869f7ep+16f, chars_format::general, 5, "99999"}, |
| 3759 |
{0x1.869f80p+16f, chars_format::general, 5, "1e+05"}, |
| 3760 |
{0x1.a36e20p-14f, chars_format::general, 6, "9.99999e-05"}, |
| 3761 |
{0x1.a36e22p-14f, chars_format::general, 6, "0.0001"}, |
| 3762 |
{0x1.0624d4p-10f, chars_format::general, 6, "0.000999999"}, |
| 3763 |
{0x1.0624d6p-10f, chars_format::general, 6, "0.001"}, |
| 3764 |
{0x1.47ae08p-7f, chars_format::general, 6, "0.00999999"}, |
| 3765 |
{0x1.47ae0ap-7f, chars_format::general, 6, "0.01"}, |
| 3766 |
{0x1.99998cp-4f, chars_format::general, 6, "0.0999999"}, |
| 3767 |
{0x1.99998ep-4f, chars_format::general, 6, "0.1"}, |
| 3768 |
{0x1.ffffeep-1f, chars_format::general, 6, "0.999999"}, |
| 3769 |
{0x1.fffff0p-1f, chars_format::general, 6, "1"}, |
| 3770 |
{0x1.3ffff4p+3f, chars_format::general, 6, "9.99999"}, |
| 3771 |
{0x1.3ffff6p+3f, chars_format::general, 6, "10"}, |
| 3772 |
{0x1.8ffff2p+6f, chars_format::general, 6, "99.9999"}, |
| 3773 |
{0x1.8ffff4p+6f, chars_format::general, 6, "100"}, |
| 3774 |
{0x1.f3ffeep+9f, chars_format::general, 6, "999.999"}, |
| 3775 |
{0x1.f3fff0p+9f, chars_format::general, 6, "1000"}, |
| 3776 |
{0x1.387ff4p+13f, chars_format::general, 6, "9999.99"}, |
| 3777 |
{0x1.387ff6p+13f, chars_format::general, 6, "10000"}, |
| 3778 |
{0x1.869ff2p+16f, chars_format::general, 6, "99999.9"}, |
| 3779 |
{0x1.869ff4p+16f, chars_format::general, 6, "100000"}, |
| 3780 |
{0x1.e847eep+19f, chars_format::general, 6, "999999"}, |
| 3781 |
{0x1.e847f0p+19f, chars_format::general, 6, "1e+06"}, |
| 3782 |
{0x1.a36e2cp-14f, chars_format::general, 7, "9.999999e-05"}, |
| 3783 |
{0x1.a36e2ep-14f, chars_format::general, 7, "0.0001"}, |
| 3784 |
{0x1.0624dcp-10f, chars_format::general, 7, "0.0009999999"}, |
| 3785 |
{0x1.0624dep-10f, chars_format::general, 7, "0.001"}, |
| 3786 |
{0x1.47ae12p-7f, chars_format::general, 7, "0.009999999"}, |
| 3787 |
{0x1.47ae14p-7f, chars_format::general, 7, "0.01"}, |
| 3788 |
{0x1.999998p-4f, chars_format::general, 7, "0.09999999"}, |
| 3789 |
{0x1.99999ap-4f, chars_format::general, 7, "0.1"}, |
| 3790 |
{0x1.fffffep-1f, chars_format::general, 7, "0.9999999"}, |
| 3791 |
{0x1.000000p+0f, chars_format::general, 7, "1"}, |
| 3792 |
{0x1.3ffffep+3f, chars_format::general, 7, "9.999999"}, |
| 3793 |
{0x1.400000p+3f, chars_format::general, 7, "10"}, |
| 3794 |
{0x1.8ffffep+6f, chars_format::general, 7, "99.99999"}, |
| 3795 |
{0x1.900000p+6f, chars_format::general, 7, "100"}, |
| 3796 |
{0x1.f3fffep+9f, chars_format::general, 7, "999.9999"}, |
| 3797 |
{0x1.f40000p+9f, chars_format::general, 7, "1000"}, |
| 3798 |
{0x1.387ffep+13f, chars_format::general, 7, "9999.999"}, |
| 3799 |
{0x1.388000p+13f, chars_format::general, 7, "10000"}, |
| 3800 |
{0x1.869ffep+16f, chars_format::general, 7, "99999.99"}, |
| 3801 |
{0x1.86a000p+16f, chars_format::general, 7, "100000"}, |
| 3802 |
{0x1.e847fep+19f, chars_format::general, 7, "999999.9"}, |
| 3803 |
{0x1.e84800p+19f, chars_format::general, 7, "1000000"}, |
| 3804 |
{0x1.312cfep+23f, chars_format::general, 7, "9999999"}, |
| 3805 |
{0x1.312d00p+23f, chars_format::general, 7, "1e+07"}, |
| 3806 |
{0x1.7d783ep+26f, chars_format::general, 8, "99999992"}, |
| 3807 |
{0x1.7d7840p+26f, chars_format::general, 8, "1e+08"}, |
| 3808 |
{0x1.dcd64ep+29f, chars_format::general, 9, "999999936"}, |
| 3809 |
{0x1.dcd650p+29f, chars_format::general, 9, "1e+09"}, |
| 3810 |
{0x1.2a05f0p+33f, chars_format::general, 10, "9999998976"}, |
| 3811 |
{0x1.2a05f2p+33f, chars_format::general, 10, "1e+10"}, |
| 3812 |
{0x1.74876ep+36f, chars_format::general, 11, "99999997952"}, |
| 3813 |
{0x1.748770p+36f, chars_format::general, 11, "1.0000000614e+11"}, |
| 3814 |
{0x1.d1a94ap+39f, chars_format::general, 12, "999999995904"}, |
| 3815 |
{0x1.d1a94cp+39f, chars_format::general, 12, "1.00000006144e+12"}, |
| 3816 |
{0x1.2309cep+43f, chars_format::general, 13, "9999999827968"}, |
| 3817 |
{0x1.2309d0p+43f, chars_format::general, 13, "1.000000087654e+13"}, |
| 3818 |
{0x1.6bcc40p+46f, chars_format::general, 14, "99999991988224"}, |
| 3819 |
{0x1.6bcc42p+46f, chars_format::general, 14, "1.0000000037683e+14"}, |
| 3820 |
{0x1.c6bf52p+49f, chars_format::general, 15, "999999986991104"}, |
| 3821 |
{0x1.c6bf54p+49f, chars_format::general, 15, "1.00000005409997e+15"}, |
| 3822 |
{0x1.1c3792p+53f, chars_format::general, 16, "9999999198822400"}, |
| 3823 |
{0x1.1c3794p+53f, chars_format::general, 16, "1.000000027256422e+16"}, |
| 3824 |
{0x1.634578p+56f, chars_format::general, 17, "99999998430674944"}, |
| 3825 |
{0x1.63457ap+56f, chars_format::general, 17, "1.0000000702060954e+17"}, |
| 3826 |
{0x1.bc16d6p+59f, chars_format::general, 18, "999999984306749440"}, |
| 3827 |
{0x1.bc16d8p+59f, chars_format::general, 18, "1.00000005302622618e+18"}, |
| 3828 |
{0x1.158e46p+63f, chars_format::general, 19, "9999999980506447872"}, |
| 3829 |
{0x1.158e48p+63f, chars_format::general, 19, "1.000000108001807565e+19"}, |
| 3830 |
{0x1.5af1d6p+66f, chars_format::general, 20, "99999993207994712064"}, |
| 3831 |
{0x1.5af1d8p+66f, chars_format::general, 20, "1.0000000200408773427e+20"}, |
| 3832 |
{0x1.b1ae4cp+69f, chars_format::general, 21, "999999949672133165056"}, |
| 3833 |
{0x1.b1ae4ep+69f, chars_format::general, 21, "1.00000002004087734272e+21"}, |
| 3834 |
{0x1.0f0cf0p+73f, chars_format::general, 22, "9999999778196308361216"}, |
| 3835 |
{0x1.0f0cf2p+73f, chars_format::general, 22, "1.000000090409621520384e+22"}, |
| 3836 |
{0x1.52d02cp+76f, chars_format::general, 23, "99999997781963083612160"}, |
| 3837 |
{0x1.52d02ep+76f, chars_format::general, 23, "1.0000000678916233835315e+23"}, |
| 3838 |
{0x1.a78436p+79f, chars_format::general, 24, "999999941790833817157632"}, |
| 3839 |
{0x1.a78438p+79f, chars_format::general, 24, "1.00000001384842785508557e+24"}, |
| 3840 |
{0x1.a36e2ep-14f, chars_format::general, 25, "9.999999747378751635551453e-05"}, |
| 3841 |
{0x1.a36e30p-14f, chars_format::general, 25, "0.0001000000047497451305389404"}, |
| 3842 |
{0x1.0624dcp-10f, chars_format::general, 25, "0.0009999999310821294784545898"}, |
| 3843 |
{0x1.0624dep-10f, chars_format::general, 25, "0.001000000047497451305389404"}, |
| 3844 |
{0x1.47ae14p-7f, chars_format::general, 25, "0.009999999776482582092285156"}, |
| 3845 |
{0x1.47ae16p-7f, chars_format::general, 25, "0.01000000070780515670776367"}, |
| 3846 |
{0x1.999998p-4f, chars_format::general, 25, "0.0999999940395355224609375"}, |
| 3847 |
{0x1.99999ap-4f, chars_format::general, 25, "0.1000000014901161193847656"}, |
| 3848 |
{0x1.fffffep-1f, chars_format::general, 25, "0.999999940395355224609375"}, |
| 3849 |
{0x1.000000p+0f, chars_format::general, 25, "1"}, |
| 3850 |
{0x1.3ffffep+3f, chars_format::general, 25, "9.99999904632568359375"}, |
| 3851 |
{0x1.400000p+3f, chars_format::general, 25, "10"}, |
| 3852 |
{0x1.8ffffep+6f, chars_format::general, 25, "99.99999237060546875"}, |
| 3853 |
{0x1.900000p+6f, chars_format::general, 25, "100"}, |
| 3854 |
{0x1.f3fffep+9f, chars_format::general, 25, "999.99993896484375"}, |
| 3855 |
{0x1.f40000p+9f, chars_format::general, 25, "1000"}, |
| 3856 |
{0x1.387ffep+13f, chars_format::general, 25, "9999.9990234375"}, |
| 3857 |
{0x1.388000p+13f, chars_format::general, 25, "10000"}, |
| 3858 |
{0x1.869ffep+16f, chars_format::general, 25, "99999.9921875"}, |
| 3859 |
{0x1.86a000p+16f, chars_format::general, 25, "100000"}, |
| 3860 |
{0x1.e847fep+19f, chars_format::general, 25, "999999.9375"}, |
| 3861 |
{0x1.e84800p+19f, chars_format::general, 25, "1000000"}, |
| 3862 |
{0x1.312cfep+23f, chars_format::general, 25, "9999999"}, |
| 3863 |
{0x1.312d00p+23f, chars_format::general, 25, "10000000"}, |
| 3864 |
{0x1.7d783ep+26f, chars_format::general, 25, "99999992"}, |
| 3865 |
{0x1.7d7840p+26f, chars_format::general, 25, "100000000"}, |
| 3866 |
{0x1.dcd64ep+29f, chars_format::general, 25, "999999936"}, |
| 3867 |
{0x1.dcd650p+29f, chars_format::general, 25, "1000000000"}, |
| 3868 |
{0x1.2a05f0p+33f, chars_format::general, 25, "9999998976"}, |
| 3869 |
{0x1.2a05f2p+33f, chars_format::general, 25, "10000000000"}, |
| 3870 |
{0x1.74876ep+36f, chars_format::general, 25, "99999997952"}, |
| 3871 |
{0x1.748770p+36f, chars_format::general, 25, "100000006144"}, |
| 3872 |
{0x1.d1a94ap+39f, chars_format::general, 25, "999999995904"}, |
| 3873 |
{0x1.d1a94cp+39f, chars_format::general, 25, "1000000061440"}, |
| 3874 |
{0x1.2309cep+43f, chars_format::general, 25, "9999999827968"}, |
| 3875 |
{0x1.2309d0p+43f, chars_format::general, 25, "10000000876544"}, |
| 3876 |
{0x1.6bcc40p+46f, chars_format::general, 25, "99999991988224"}, |
| 3877 |
{0x1.6bcc42p+46f, chars_format::general, 25, "100000000376832"}, |
| 3878 |
{0x1.c6bf52p+49f, chars_format::general, 25, "999999986991104"}, |
| 3879 |
{0x1.c6bf54p+49f, chars_format::general, 25, "1000000054099968"}, |
| 3880 |
{0x1.1c3792p+53f, chars_format::general, 25, "9999999198822400"}, |
| 3881 |
{0x1.1c3794p+53f, chars_format::general, 25, "10000000272564224"}, |
| 3882 |
{0x1.634578p+56f, chars_format::general, 25, "99999998430674944"}, |
| 3883 |
{0x1.63457ap+56f, chars_format::general, 25, "100000007020609536"}, |
| 3884 |
{0x1.bc16d6p+59f, chars_format::general, 25, "999999984306749440"}, |
| 3885 |
{0x1.bc16d8p+59f, chars_format::general, 25, "1000000053026226176"}, |
| 3886 |
{0x1.158e46p+63f, chars_format::general, 25, "9999999980506447872"}, |
| 3887 |
{0x1.158e48p+63f, chars_format::general, 25, "10000001080018075648"}, |
| 3888 |
{0x1.5af1d6p+66f, chars_format::general, 25, "99999993207994712064"}, |
| 3889 |
{0x1.5af1d8p+66f, chars_format::general, 25, "100000002004087734272"}, |
| 3890 |
{0x1.b1ae4cp+69f, chars_format::general, 25, "999999949672133165056"}, |
| 3891 |
{0x1.b1ae4ep+69f, chars_format::general, 25, "1000000020040877342720"}, |
| 3892 |
{0x1.0f0cf0p+73f, chars_format::general, 25, "9999999778196308361216"}, |
| 3893 |
{0x1.0f0cf2p+73f, chars_format::general, 25, "10000000904096215203840"}, |
| 3894 |
{0x1.52d02cp+76f, chars_format::general, 25, "99999997781963083612160"}, |
| 3895 |
{0x1.52d02ep+76f, chars_format::general, 25, "100000006789162338353152"}, |
| 3896 |
{0x1.a78436p+79f, chars_format::general, 25, "999999941790833817157632"}, |
| 3897 |
{0x1.a78438p+79f, chars_format::general, 25, "1000000013848427855085568"}, |
| 3898 |
{0x1.08b2a2p+83f, chars_format::general, 25, "9999999562023526247432192"}, |
| 3899 |
{0x1.08b2a4p+83f, chars_format::general, 25, "1.000000071494503085427917e+25"}, |
| 3900 |
{0x1.4adf4ap+86f, chars_format::general, 26, "99999993314392253260627968"}, |
| 3901 |
{0x1.4adf4cp+86f, chars_format::general, 26, "1.0000000253776429011540378e+26"}, |
| 3902 |
{0x1.9d971ep+89f, chars_format::general, 27, "999999988484154753734934528"}, |
| 3903 |
{0x1.9d9720p+89f, chars_format::general, 27, "1.00000006227113104857314099e+27"}, |
| 3904 |
{0x1.027e72p+93f, chars_format::general, 28, "9999999442119689768320106496"}, |
| 3905 |
{0x1.027e74p+93f, chars_format::general, 28, "1.000000062271131048573140992e+28"}, |
| 3906 |
{0x1.431e0ep+96f, chars_format::general, 29, "99999992060013656248378458112"}, |
| 3907 |
{0x1.431e10p+96f, chars_format::general, 29, "1.000000015047466219876688855e+29"}, |
| 3908 |
{0x1.93e592p+99f, chars_format::general, 30, "999999939489602493962365435904"}, |
| 3909 |
{0x1.93e594p+99f, chars_format::general, 30, "1.00000001504746621987668885504e+30"}, |
| 3910 |
{0x1.f8def8p+102f, chars_format::general, 31, "9999999848243207295109594873856"}, |
| 3911 |
{0x1.f8defap+102f, chars_format::general, 31, "1.000000045270611710242418222694e+31"}, |
| 3912 |
{0x1.3b8b5ap+106f, chars_format::general, 32, "99999993646728794492579249913856"}, |
| 3913 |
{0x1.3b8b5cp+106f, chars_format::general, 32, "1.0000000331813535140961264756326e+32"}, |
| 3914 |
{0x1.8a6e32p+109f, chars_format::general, 33, "999999994495727286427992885035008"}, |
| 3915 |
{0x1.8a6e34p+109f, chars_format::general, 33, "1.00000007186697974176426006623027e+33"}, |
| 3916 |
{0x1.ed09bep+112f, chars_format::general, 34, "9999999790214767953607394487959552"}, |
| 3917 |
{0x1.ed09c0p+112f, chars_format::general, 34, "1.000000040918478759629753193752166e+34"}, |
| 3918 |
{0x1.342616p+116f, chars_format::general, 35, "99999994188327561679933120182222848"}, |
| 3919 |
{0x1.342618p+116f, chars_format::general, 35, "1.0000000409184787596297531937521664e+35"}, |
| 3920 |
{0x1.812f9cp+119f, chars_format::general, 36, "999999961690316245365415600208216064"}, |
| 3921 |
{0x1.812f9ep+119f, chars_format::general, 36, "1.0000000409184787596297531937521664e+36"}, |
| 3922 |
{0x1.e17b84p+122f, chars_format::general, 37, "9999999933815812510711506376257961984"}, |
| 3923 |
{0x1.e17b86p+122f, chars_format::general, 37, "1.000000056764111262482620712460956467e+37"}, |
| 3924 |
{0x1.2ced32p+126f, chars_format::general, 38, "99999996802856924650656260769173209088"}, |
| 3925 |
{0x1.2ced34p+126f, chars_format::general, 38, "1.000000069440617264764914727427988521e+38"}, |
| 3926 |
{0x1.a36e2ep-14f, chars_format::general, 39, "9.99999974737875163555145263671875e-05"}, |
| 3927 |
{0x1.a36e30p-14f, chars_format::general, 39, "0.0001000000047497451305389404296875"}, |
| 3928 |
{0x1.0624dcp-10f, chars_format::general, 39, "0.00099999993108212947845458984375"}, |
| 3929 |
{0x1.0624dep-10f, chars_format::general, 39, "0.001000000047497451305389404296875"}, |
| 3930 |
{0x1.47ae14p-7f, chars_format::general, 39, "0.00999999977648258209228515625"}, |
| 3931 |
{0x1.47ae16p-7f, chars_format::general, 39, "0.010000000707805156707763671875"}, |
| 3932 |
{0x1.999998p-4f, chars_format::general, 39, "0.0999999940395355224609375"}, |
| 3933 |
{0x1.99999ap-4f, chars_format::general, 39, "0.100000001490116119384765625"}, |
| 3934 |
{0x1.fffffep-1f, chars_format::general, 39, "0.999999940395355224609375"}, |
| 3935 |
{0x1.000000p+0f, chars_format::general, 39, "1"}, |
| 3936 |
{0x1.3ffffep+3f, chars_format::general, 39, "9.99999904632568359375"}, |
| 3937 |
{0x1.400000p+3f, chars_format::general, 39, "10"}, |
| 3938 |
{0x1.8ffffep+6f, chars_format::general, 39, "99.99999237060546875"}, |
| 3939 |
{0x1.900000p+6f, chars_format::general, 39, "100"}, |
| 3940 |
{0x1.f3fffep+9f, chars_format::general, 39, "999.99993896484375"}, |
| 3941 |
{0x1.f40000p+9f, chars_format::general, 39, "1000"}, |
| 3942 |
{0x1.387ffep+13f, chars_format::general, 39, "9999.9990234375"}, |
| 3943 |
{0x1.388000p+13f, chars_format::general, 39, "10000"}, |
| 3944 |
{0x1.869ffep+16f, chars_format::general, 39, "99999.9921875"}, |
| 3945 |
{0x1.86a000p+16f, chars_format::general, 39, "100000"}, |
| 3946 |
{0x1.e847fep+19f, chars_format::general, 39, "999999.9375"}, |
| 3947 |
{0x1.e84800p+19f, chars_format::general, 39, "1000000"}, |
| 3948 |
{0x1.312cfep+23f, chars_format::general, 39, "9999999"}, |
| 3949 |
{0x1.312d00p+23f, chars_format::general, 39, "10000000"}, |
| 3950 |
{0x1.7d783ep+26f, chars_format::general, 39, "99999992"}, |
| 3951 |
{0x1.7d7840p+26f, chars_format::general, 39, "100000000"}, |
| 3952 |
{0x1.dcd64ep+29f, chars_format::general, 39, "999999936"}, |
| 3953 |
{0x1.dcd650p+29f, chars_format::general, 39, "1000000000"}, |
| 3954 |
{0x1.2a05f0p+33f, chars_format::general, 39, "9999998976"}, |
| 3955 |
{0x1.2a05f2p+33f, chars_format::general, 39, "10000000000"}, |
| 3956 |
{0x1.74876ep+36f, chars_format::general, 39, "99999997952"}, |
| 3957 |
{0x1.748770p+36f, chars_format::general, 39, "100000006144"}, |
| 3958 |
{0x1.d1a94ap+39f, chars_format::general, 39, "999999995904"}, |
| 3959 |
{0x1.d1a94cp+39f, chars_format::general, 39, "1000000061440"}, |
| 3960 |
{0x1.2309cep+43f, chars_format::general, 39, "9999999827968"}, |
| 3961 |
{0x1.2309d0p+43f, chars_format::general, 39, "10000000876544"}, |
| 3962 |
{0x1.6bcc40p+46f, chars_format::general, 39, "99999991988224"}, |
| 3963 |
{0x1.6bcc42p+46f, chars_format::general, 39, "100000000376832"}, |
| 3964 |
{0x1.c6bf52p+49f, chars_format::general, 39, "999999986991104"}, |
| 3965 |
{0x1.c6bf54p+49f, chars_format::general, 39, "1000000054099968"}, |
| 3966 |
{0x1.1c3792p+53f, chars_format::general, 39, "9999999198822400"}, |
| 3967 |
{0x1.1c3794p+53f, chars_format::general, 39, "10000000272564224"}, |
| 3968 |
{0x1.634578p+56f, chars_format::general, 39, "99999998430674944"}, |
| 3969 |
{0x1.63457ap+56f, chars_format::general, 39, "100000007020609536"}, |
| 3970 |
{0x1.bc16d6p+59f, chars_format::general, 39, "999999984306749440"}, |
| 3971 |
{0x1.bc16d8p+59f, chars_format::general, 39, "1000000053026226176"}, |
| 3972 |
{0x1.158e46p+63f, chars_format::general, 39, "9999999980506447872"}, |
| 3973 |
{0x1.158e48p+63f, chars_format::general, 39, "10000001080018075648"}, |
| 3974 |
{0x1.5af1d6p+66f, chars_format::general, 39, "99999993207994712064"}, |
| 3975 |
{0x1.5af1d8p+66f, chars_format::general, 39, "100000002004087734272"}, |
| 3976 |
{0x1.b1ae4cp+69f, chars_format::general, 39, "999999949672133165056"}, |
| 3977 |
{0x1.b1ae4ep+69f, chars_format::general, 39, "1000000020040877342720"}, |
| 3978 |
{0x1.0f0cf0p+73f, chars_format::general, 39, "9999999778196308361216"}, |
| 3979 |
{0x1.0f0cf2p+73f, chars_format::general, 39, "10000000904096215203840"}, |
| 3980 |
{0x1.52d02cp+76f, chars_format::general, 39, "99999997781963083612160"}, |
| 3981 |
{0x1.52d02ep+76f, chars_format::general, 39, "100000006789162338353152"}, |
| 3982 |
{0x1.a78436p+79f, chars_format::general, 39, "999999941790833817157632"}, |
| 3983 |
{0x1.a78438p+79f, chars_format::general, 39, "1000000013848427855085568"}, |
| 3984 |
{0x1.08b2a2p+83f, chars_format::general, 39, "9999999562023526247432192"}, |
| 3985 |
{0x1.08b2a4p+83f, chars_format::general, 39, "10000000714945030854279168"}, |
| 3986 |
{0x1.4adf4ap+86f, chars_format::general, 39, "99999993314392253260627968"}, |
| 3987 |
{0x1.4adf4cp+86f, chars_format::general, 39, "100000002537764290115403776"}, |
| 3988 |
{0x1.9d971ep+89f, chars_format::general, 39, "999999988484154753734934528"}, |
| 3989 |
{0x1.9d9720p+89f, chars_format::general, 39, "1000000062271131048573140992"}, |
| 3990 |
{0x1.027e72p+93f, chars_format::general, 39, "9999999442119689768320106496"}, |
| 3991 |
{0x1.027e74p+93f, chars_format::general, 39, "10000000622711310485731409920"}, |
| 3992 |
{0x1.431e0ep+96f, chars_format::general, 39, "99999992060013656248378458112"}, |
| 3993 |
{0x1.431e10p+96f, chars_format::general, 39, "100000001504746621987668885504"}, |
| 3994 |
{0x1.93e592p+99f, chars_format::general, 39, "999999939489602493962365435904"}, |
| 3995 |
{0x1.93e594p+99f, chars_format::general, 39, "1000000015047466219876688855040"}, |
| 3996 |
{0x1.f8def8p+102f, chars_format::general, 39, "9999999848243207295109594873856"}, |
| 3997 |
{0x1.f8defap+102f, chars_format::general, 39, "10000000452706117102424182226944"}, |
| 3998 |
{0x1.3b8b5ap+106f, chars_format::general, 39, "99999993646728794492579249913856"}, |
| 3999 |
{0x1.3b8b5cp+106f, chars_format::general, 39, "100000003318135351409612647563264"}, |
| 4000 |
{0x1.8a6e32p+109f, chars_format::general, 39, "999999994495727286427992885035008"}, |
| 4001 |
{0x1.8a6e34p+109f, chars_format::general, 39, "1000000071866979741764260066230272"}, |
| 4002 |
{0x1.ed09bep+112f, chars_format::general, 39, "9999999790214767953607394487959552"}, |
| 4003 |
{0x1.ed09c0p+112f, chars_format::general, 39, "10000000409184787596297531937521664"}, |
| 4004 |
{0x1.342616p+116f, chars_format::general, 39, "99999994188327561679933120182222848"}, |
| 4005 |
{0x1.342618p+116f, chars_format::general, 39, "100000004091847875962975319375216640"}, |
| 4006 |
{0x1.812f9cp+119f, chars_format::general, 39, "999999961690316245365415600208216064"}, |
| 4007 |
{0x1.812f9ep+119f, chars_format::general, 39, "1000000040918478759629753193752166400"}, |
| 4008 |
{0x1.e17b84p+122f, chars_format::general, 39, "9999999933815812510711506376257961984"}, |
| 4009 |
{0x1.e17b86p+122f, chars_format::general, 39, "10000000567641112624826207124609564672"}, |
| 4010 |
{0x1.2ced32p+126f, chars_format::general, 39, "99999996802856924650656260769173209088"}, |
| 4011 |
{0x1.2ced34p+126f, chars_format::general, 39, "100000006944061726476491472742798852096"}, |
| 4012 |
{0x1.fffffep+127f, chars_format::general, 39, "340282346638528859811704183484516925440"}, |
| 4013 |
}; |
| 4014 |
|
| 4015 |
inline constexpr float_to_chars_testcase float_hex_precision_to_chars_test_cases[] = { |
| 4016 |
// Test special cases (zero, inf, nan) and an ordinary case. Also test negative signs. |
| 4017 |
{0.0f, chars_format::hex, 4, "0.0000p+0"}, |
| 4018 |
{-0.0f, chars_format::hex, 4, "-0.0000p+0"}, |
| 4019 |
{float_inf, chars_format::hex, 4, "inf"}, |
| 4020 |
{-float_inf, chars_format::hex, 4, "-inf"}, |
| 4021 |
{float_nan, chars_format::hex, 4, "nan"}, |
| 4022 |
{-float_nan, chars_format::hex, 4, "-nan"}, |
| 4023 |
{0x1.729p+0f, chars_format::hex, 4, "1.7290p+0"}, |
| 4024 |
{-0x1.729p+0f, chars_format::hex, 4, "-1.7290p+0"}, |
| 4025 |
|
| 4026 |
// Test hexfloat corner cases. |
| 4027 |
{0x1.728p+0f, chars_format::hex, 6, "1.728000p+0"}, |
| 4028 |
{0x0.000002p-126f, chars_format::hex, 6, "0.000002p-126"}, // min subnormal |
| 4029 |
{0x0.fffffep-126f, chars_format::hex, 6, "0.fffffep-126"}, // max subnormal |
| 4030 |
{0x1p-126f, chars_format::hex, 6, "1.000000p-126"}, // min normal |
| 4031 |
{0x1.fffffep+127f, chars_format::hex, 6, "1.fffffep+127"}, // max normal |
| 4032 |
|
| 4033 |
// Test hexfloat exponents. |
| 4034 |
{0x1p-109f, chars_format::hex, 0, "1p-109"}, |
| 4035 |
{0x1p-99f, chars_format::hex, 0, "1p-99"}, |
| 4036 |
{0x1p-9f, chars_format::hex, 0, "1p-9"}, |
| 4037 |
{0x1p+0f, chars_format::hex, 0, "1p+0"}, |
| 4038 |
{0x1p+9f, chars_format::hex, 0, "1p+9"}, |
| 4039 |
{0x1p+99f, chars_format::hex, 0, "1p+99"}, |
| 4040 |
{0x1p+109f, chars_format::hex, 0, "1p+109"}, |
| 4041 |
|
| 4042 |
// Test hexfloat hexits. |
| 4043 |
{0x1.0123p+0f, chars_format::hex, 4, "1.0123p+0"}, |
| 4044 |
{0x1.4567p+0f, chars_format::hex, 4, "1.4567p+0"}, |
| 4045 |
{0x1.89abp+0f, chars_format::hex, 4, "1.89abp+0"}, |
| 4046 |
{0x1.cdefp+0f, chars_format::hex, 4, "1.cdefp+0"}, |
| 4047 |
|
| 4048 |
// Test varying precision. Negative precision requests full precision, not shortest round-trip. |
| 4049 |
{0x1.123456p+0f, chars_format::hex, -2, "1.123456p+0"}, |
| 4050 |
{0x1.123456p+0f, chars_format::hex, -1, "1.123456p+0"}, |
| 4051 |
{0x1.123456p+0f, chars_format::hex, 0, "1p+0"}, |
| 4052 |
{0x1.123456p+0f, chars_format::hex, 1, "1.1p+0"}, |
| 4053 |
{0x1.123456p+0f, chars_format::hex, 2, "1.12p+0"}, |
| 4054 |
{0x1.123456p+0f, chars_format::hex, 3, "1.123p+0"}, |
| 4055 |
{0x1.123456p+0f, chars_format::hex, 4, "1.1234p+0"}, |
| 4056 |
{0x1.123456p+0f, chars_format::hex, 5, "1.12345p+0"}, |
| 4057 |
{0x1.123456p+0f, chars_format::hex, 6, "1.123456p+0"}, |
| 4058 |
{0x1.123456p+0f, chars_format::hex, 7, "1.1234560p+0"}, |
| 4059 |
{0x1.123456p+0f, chars_format::hex, 8, "1.12345600p+0"}, |
| 4060 |
{0x1.123456p+0f, chars_format::hex, 9, "1.123456000p+0"}, |
| 4061 |
|
| 4062 |
// Test rounding at every position. |
| 4063 |
{0x1.ccccccp+0f, chars_format::hex, 0, "2p+0"}, |
| 4064 |
{0x1.ccccccp+0f, chars_format::hex, 1, "1.dp+0"}, |
| 4065 |
{0x1.ccccccp+0f, chars_format::hex, 2, "1.cdp+0"}, |
| 4066 |
{0x1.ccccccp+0f, chars_format::hex, 3, "1.ccdp+0"}, |
| 4067 |
{0x1.ccccccp+0f, chars_format::hex, 4, "1.cccdp+0"}, |
| 4068 |
{0x1.ccccccp+0f, chars_format::hex, 5, "1.ccccdp+0"}, |
| 4069 |
{0x1.ccccccp+0f, chars_format::hex, 6, "1.ccccccp+0"}, |
| 4070 |
|
| 4071 |
// Test all combinations of least significant bit, round bit, and trailing bits. |
| 4072 |
{0x1.04000p+0f, chars_format::hex, 2, "1.04p+0"}, // Lsb 0, Round 0, Trailing 0 |
| 4073 |
{0x1.04001p+0f, chars_format::hex, 2, "1.04p+0"}, // Lsb 0, Round 0 and Trailing 1 in different hexits |
| 4074 |
{0x1.04200p+0f, chars_format::hex, 2, "1.04p+0"}, // Lsb 0, Round 0 and Trailing 1 in same hexit |
| 4075 |
{0x1.04800p+0f, chars_format::hex, 2, "1.04p+0"}, // Lsb 0, Round 1, Trailing 0 |
| 4076 |
{0x1.04801p+0f, chars_format::hex, 2, "1.05p+0"}, // Lsb 0, Round 1 and Trailing 1 in different hexits |
| 4077 |
{0x1.04900p+0f, chars_format::hex, 2, "1.05p+0"}, // Lsb 0, Round 1 and Trailing 1 in same hexit |
| 4078 |
{0x1.05000p+0f, chars_format::hex, 2, "1.05p+0"}, // Lsb 1, Round 0, Trailing 0 |
| 4079 |
{0x1.05001p+0f, chars_format::hex, 2, "1.05p+0"}, // Lsb 1, Round 0 and Trailing 1 in different hexits |
| 4080 |
{0x1.05200p+0f, chars_format::hex, 2, "1.05p+0"}, // Lsb 1, Round 0 and Trailing 1 in same hexit |
| 4081 |
{0x1.05800p+0f, chars_format::hex, 2, "1.06p+0"}, // Lsb 1, Round 1, Trailing 0 |
| 4082 |
{0x1.05801p+0f, chars_format::hex, 2, "1.06p+0"}, // Lsb 1, Round 1 and Trailing 1 in different hexits |
| 4083 |
{0x1.05900p+0f, chars_format::hex, 2, "1.06p+0"}, // Lsb 1, Round 1 and Trailing 1 in same hexit |
| 4084 |
|
| 4085 |
// Test carry propagation. |
| 4086 |
{0x1.0afffep+0f, chars_format::hex, 5, "1.0b000p+0"}, |
| 4087 |
|
| 4088 |
// Test carry propagation into the leading hexit. |
| 4089 |
{0x0.fffffep-126f, chars_format::hex, 5, "1.00000p-126"}, |
| 4090 |
{0x1.fffffep+127f, chars_format::hex, 5, "2.00000p+127"}, |
| 4091 |
|
| 4092 |
// Test how the leading hexit participates in the rounding decision. |
| 4093 |
{0x0.000p+0f, chars_format::hex, 0, "0p+0"}, |
| 4094 |
{0x0.001p-126f, chars_format::hex, 0, "0p-126"}, |
| 4095 |
{0x0.200p-126f, chars_format::hex, 0, "0p-126"}, |
| 4096 |
{0x0.800p-126f, chars_format::hex, 0, "0p-126"}, |
| 4097 |
{0x0.801p-126f, chars_format::hex, 0, "1p-126"}, |
| 4098 |
{0x0.900p-126f, chars_format::hex, 0, "1p-126"}, |
| 4099 |
{0x1.000p+0f, chars_format::hex, 0, "1p+0"}, |
| 4100 |
{0x1.001p+0f, chars_format::hex, 0, "1p+0"}, |
| 4101 |
{0x1.200p+0f, chars_format::hex, 0, "1p+0"}, |
| 4102 |
{0x1.800p+0f, chars_format::hex, 0, "2p+0"}, |
| 4103 |
{0x1.801p+0f, chars_format::hex, 0, "2p+0"}, |
| 4104 |
{0x1.900p+0f, chars_format::hex, 0, "2p+0"}, |
| 4105 |
}; |
| 4106 |
|
| 4107 |
void |
| 4108 |
test01() |
| 4109 |
{ |
| 4110 |
auto handle_testcases = [] (const auto& testcases) { |
| 4111 |
for (const auto [value,fmt,precision,correct] : testcases) |
| 4112 |
{ |
| 4113 |
const int correct_len = strlen(correct); |
| 4114 |
char buffer[correct_len]; |
| 4115 |
memset(buffer, '\0', sizeof(buffer)); |
| 4116 |
|
| 4117 |
to_chars_result result |
| 4118 |
= (precision |
| 4119 |
? to_chars(buffer, buffer+correct_len, value, fmt, *precision) |
| 4120 |
: to_chars(buffer, buffer+correct_len, value, fmt)); |
| 4121 |
VERIFY( result.ec == errc{} ); |
| 4122 |
VERIFY( result.ptr - buffer == correct_len ); |
| 4123 |
VERIFY( !memcmp(buffer, correct, correct_len) ); |
| 4124 |
|
| 4125 |
result |
| 4126 |
= (precision |
| 4127 |
? to_chars(buffer, buffer+correct_len-1, value, fmt, *precision) |
| 4128 |
: to_chars(buffer, buffer+correct_len-1, value, fmt)); |
| 4129 |
VERIFY( result.ec == errc::value_too_large ); |
| 4130 |
VERIFY( result.ptr == buffer+correct_len-1 ); |
| 4131 |
} |
| 4132 |
}; |
| 4133 |
|
| 4134 |
handle_testcases(float_to_chars_test_cases); |
| 4135 |
handle_testcases(float_fixed_precision_to_chars_test_cases); |
| 4136 |
handle_testcases(float_general_precision_to_chars_test_cases); |
| 4137 |
handle_testcases(float_hex_precision_to_chars_test_cases); |
| 4138 |
} |
| 4139 |
|
| 4140 |
int |
| 4141 |
main() |
| 4142 |
{ |
| 4143 |
test01(); |
| 4144 |
} |