📄 base.dectest
字号:
emax015 toSci 0.1 -> 0.1 Subnormal
emax016 toSci 0.01 -> 0.01 Subnormal
emax017 toSci 1E-1 -> 0.1 Subnormal
emax018 toSci 1E-2 -> 0.01 Subnormal
maxexponent: 1
emax100 toSci -1E+3 -> -Infinity Overflow Inexact Rounded
emax101 toSci -1E+2 -> -Infinity Overflow Inexact Rounded
emax102 toSci -100 -> -Infinity Overflow Inexact Rounded
emax103 toSci -10 -> -10
emax104 toSci -9.9 -> -9.9
emax105 toSci -9 -> -9
emax106 toSci -1 -> -1
emax107 toSci 0 -> 0
emax108 toSci 1 -> 1
emax109 toSci 9 -> 9
emax110 toSci 9.9 -> 9.9
emax111 toSci 10 -> 10
emax112 toSci 100 -> Infinity Overflow Inexact Rounded
emax113 toSci 1E+2 -> Infinity Overflow Inexact Rounded
emax114 toSci 1E+3 -> Infinity Overflow Inexact Rounded
emax115 toSci 0.99 -> 0.99
emax116 toSci 0.1 -> 0.1
emax117 toSci 0.01 -> 0.01 Subnormal
emax118 toSci 1E-1 -> 0.1
emax119 toSci 1E-2 -> 0.01 Subnormal
emax120 toSci 1E-3 -> 0.001 Subnormal
emax121 toSci 1.1E-3 -> 0.0011 Subnormal
emax122 toSci 1.11E-3 -> 0.00111 Subnormal
emax123 toSci 1.111E-3 -> 0.00111 Subnormal Underflow Inexact Rounded
emax124 toSci 1.1111E-3 -> 0.00111 Subnormal Underflow Inexact Rounded
emax125 toSci 1.11111E-3 -> 0.00111 Subnormal Underflow Inexact Rounded
maxexponent: 2
precision: 9
emax200 toSci -1E+3 -> -Infinity Overflow Inexact Rounded
emax201 toSci -1E+2 -> -1E+2
emax202 toSci -100 -> -100
emax203 toSci -10 -> -10
emax204 toSci -9.9 -> -9.9
emax205 toSci -9 -> -9
emax206 toSci -1 -> -1
emax207 toSci 0 -> 0
emax208 toSci 1 -> 1
emax209 toSci 9 -> 9
emax210 toSci 9.9 -> 9.9
emax211 toSci 10 -> 10
emax212 toSci 100 -> 100
emax213 toSci 1E+2 -> 1E+2
emax214 toSci 1E+3 -> Infinity Overflow Inexact Rounded
emax215 toSci 0.99 -> 0.99
emax216 toSci 0.1 -> 0.1
emax217 toSci 0.01 -> 0.01
emax218 toSci 0.001 -> 0.001 Subnormal
emax219 toSci 1E-1 -> 0.1
emax220 toSci 1E-2 -> 0.01
emax221 toSci 1E-3 -> 0.001 Subnormal
emax222 toSci 1E-4 -> 0.0001 Subnormal
emax223 toSci 1E-5 -> 0.00001 Subnormal
emax224 toSci 1E-6 -> 0.000001 Subnormal
emax225 toSci 1E-7 -> 1E-7 Subnormal
emax226 toSci 1E-8 -> 1E-8 Subnormal
emax227 toSci 1E-9 -> 1E-9 Subnormal
emax228 toSci 1E-10 -> 1E-10 Subnormal
emax229 toSci 1E-11 -> 0E-10 Underflow Subnormal Inexact Rounded
emax230 toSci 1E-12 -> 0E-10 Underflow Subnormal Inexact Rounded
maxexponent: 7
emax231 toSci 1E-8 -> 1E-8 Subnormal
emax232 toSci 1E-7 -> 1E-7
emax233 toSci 1E-6 -> 0.000001
emax234 toSci 1E-5 -> 0.00001
emax235 toSci 1E+5 -> 1E+5
emax236 toSci 1E+6 -> 1E+6
emax237 toSci 1E+7 -> 1E+7
emax238 toSci 1E+8 -> Infinity Overflow Inexact Rounded
maxexponent: 9
emax240 toSci 1E-21 -> 0E-17 Subnormal Underflow Inexact Rounded
emax241 toSci 1E-10 -> 1E-10 Subnormal
emax242 toSci 1E-9 -> 1E-9
emax243 toSci 1E-8 -> 1E-8
emax244 toSci 1E-7 -> 1E-7
emax245 toSci 1E+7 -> 1E+7
emax246 toSci 1E+8 -> 1E+8
emax247 toSci 1E+9 -> 1E+9
emax248 toSci 1E+10 -> Infinity Overflow Inexact Rounded
maxexponent: 10 -- boundary
emax250 toSci 1E-21 -> 0E-18 Underflow Subnormal Inexact Rounded
emax251 toSci 1E-11 -> 1E-11 Subnormal
emax252 toSci 1E-10 -> 1E-10
emax253 toSci 1E-9 -> 1E-9
emax254 toSci 1E-8 -> 1E-8
emax255 toSci 1E+8 -> 1E+8
emax256 toSci 1E+9 -> 1E+9
emax257 toSci 1E+10 -> 1E+10
emax258 toSci 1E+11 -> Infinity Overflow Inexact Rounded
emax260 toSci 1.00E-21 -> 0E-18 Underflow Subnormal Inexact Rounded
emax261 toSci 1.00E-11 -> 1.00E-11 Subnormal
emax262 toSci 1.00E-10 -> 1.00E-10
emax263 toSci 1.00E-9 -> 1.00E-9
emax264 toSci 1.00E-8 -> 1.00E-8
emax265 toSci 1.00E+8 -> 1.00E+8
emax266 toSci 1.00E+9 -> 1.00E+9
emax267 toSci 1.00E+10 -> 1.00E+10
emax268 toSci 1.00E+11 -> Infinity Overflow Inexact Rounded
emax270 toSci 9.99E-21 -> 0E-18 Underflow Subnormal Inexact Rounded
emax271 toSci 9.99E-11 -> 9.99E-11 Subnormal
emax272 toSci 9.99E-10 -> 9.99E-10
emax273 toSci 9.99E-9 -> 9.99E-9
emax274 toSci 9.99E-8 -> 9.99E-8
emax275 toSci 9.99E+8 -> 9.99E+8
emax276 toSci 9.99E+9 -> 9.99E+9
emax277 toSci 9.99E+10 -> 9.99E+10
emax278 toSci 9.99E+11 -> Infinity Overflow Inexact Rounded
maxexponent: 99
emax280 toSci 1E-120 -> 0E-107 Underflow Subnormal Inexact Rounded
emax281 toSci 1E-100 -> 1E-100 Subnormal
emax282 toSci 1E-99 -> 1E-99
emax283 toSci 1E-98 -> 1E-98
emax284 toSci 1E+98 -> 1E+98
emax285 toSci 1E+99 -> 1E+99
emax286 toSci 1E+100 -> Infinity Overflow Inexact Rounded
maxexponent: 999
emax291 toSci 1E-1000 -> 1E-1000 Subnormal
emax292 toSci 1E-999 -> 1E-999
emax293 toSci 1E+999 -> 1E+999
emax294 toSci 1E+1000 -> Infinity Overflow Inexact Rounded
maxexponent: 9999
emax301 toSci 1E-10000 -> 1E-10000 Subnormal
emax302 toSci 1E-9999 -> 1E-9999
emax303 toSci 1E+9999 -> 1E+9999
emax304 toSci 1E+10000 -> Infinity Overflow Inexact Rounded
maxexponent: 99999
emax311 toSci 1E-100000 -> 1E-100000 Subnormal
emax312 toSci 1E-99999 -> 1E-99999
emax313 toSci 1E+99999 -> 1E+99999
emax314 toSci 1E+100000 -> Infinity Overflow Inexact Rounded
maxexponent: 999999
emax321 toSci 1E-1000000 -> 1E-1000000 Subnormal
emax322 toSci 1E-999999 -> 1E-999999
emax323 toSci 1E+999999 -> 1E+999999
emax324 toSci 1E+1000000 -> Infinity Overflow Inexact Rounded
maxexponent: 9999999
emax331 toSci 1E-10000000 -> 1E-10000000 Subnormal
emax332 toSci 1E-9999999 -> 1E-9999999
emax333 toSci 1E+9999999 -> 1E+9999999
emax334 toSci 1E+10000000 -> Infinity Overflow Inexact Rounded
maxexponent: 99999999
emax341 toSci 1E-100000000 -> 1E-100000000 Subnormal
emax342 toSci 1E-99999999 -> 1E-99999999
emax343 toSci 1E+99999999 -> 1E+99999999
emax344 toSci 1E+100000000 -> Infinity Overflow Inexact Rounded
maxexponent: 999999999
emax347 toSci 1E-1000000008 -> 0E-1000000007 Underflow Subnormal Inexact Rounded
emax348 toSci 1E-1000000007 -> 1E-1000000007 Subnormal
emax349 toSci 1E-1000000000 -> 1E-1000000000 Subnormal
emax350 toSci 1E-999999999 -> 1E-999999999
emax351 toSci 1E+999999999 -> 1E+999999999
emax352 toSci 1E+1000000000 -> Infinity Overflow Inexact Rounded
emax353 toSci 1.000E-1000000000 -> 1.000E-1000000000 Subnormal
emax354 toSci 1.000E-999999999 -> 1.000E-999999999
emax355 toSci 1.000E+999999999 -> 1.000E+999999999
emax356 toSci 1.000E+1000000000 -> Infinity Overflow Inexact Rounded
emax357 toSci 1.001E-1000000008 -> 0E-1000000007 Underflow Subnormal Inexact Rounded
emax358 toSci 1.001E-1000000007 -> 1E-1000000007 Subnormal Inexact Rounded Underflow
emax359 toSci 1.001E-1000000000 -> 1.001E-1000000000 Subnormal
emax360 toSci 1.001E-999999999 -> 1.001E-999999999
emax361 toSci 1.001E+999999999 -> 1.001E+999999999
emax362 toSci 1.001E+1000000000 -> Infinity Overflow Inexact Rounded
emax363 toSci 9.000E-1000000000 -> 9.000E-1000000000 Subnormal
emax364 toSci 9.000E-999999999 -> 9.000E-999999999
emax365 toSci 9.000E+999999999 -> 9.000E+999999999
emax366 toSci 9.000E+1000000000 -> Infinity Overflow Inexact Rounded
emax367 toSci 9.999E-1000000009 -> 0E-1000000007 Underflow Subnormal Inexact Rounded
emax368 toSci 9.999E-1000000008 -> 1E-1000000007 Underflow Subnormal Inexact Rounded
emax369 toSci 9.999E-1000000007 -> 1.0E-1000000006 Underflow Subnormal Inexact Rounded
emax370 toSci 9.999E-1000000000 -> 9.999E-1000000000 Subnormal
emax371 toSci 9.999E-999999999 -> 9.999E-999999999
emax372 toSci 9.999E+999999999 -> 9.999E+999999999
emax373 toSci 9.999E+1000000000 -> Infinity Overflow Inexact Rounded
emax374 toSci -1E-1000000000 -> -1E-1000000000 Subnormal
emax375 toSci -1E-999999999 -> -1E-999999999
emax376 toSci -1E+999999999 -> -1E+999999999
emax377 toSci -1E+1000000000 -> -Infinity Overflow Inexact Rounded
emax378 toSci -1.000E-1000000000 -> -1.000E-1000000000 Subnormal
emax379 toSci -1.000E-999999999 -> -1.000E-999999999
emax380 toSci -1.000E+999999999 -> -1.000E+999999999
emax381 toSci -1.000E+1000000000 -> -Infinity Overflow Inexact Rounded
emax382 toSci -1.001E-1000000008 -> -0E-1000000007 Underflow Subnormal Inexact Rounded
emax383 toSci -1.001E-999999999 -> -1.001E-999999999
emax384 toSci -1.001E+999999999 -> -1.001E+999999999
emax385 toSci -1.001E+1000000000 -> -Infinity Overflow Inexact Rounded
emax386 toSci -9.000E-1000000123 -> -0E-1000000007 Underflow Subnormal Inexact Rounded
emax387 toSci -9.000E-999999999 -> -9.000E-999999999
emax388 toSci -9.000E+999999999 -> -9.000E+999999999
emax389 toSci -9.000E+1000000000 -> -Infinity Overflow Inexact Rounded
emax390 toSci -9.999E-1000000008 -> -1E-1000000007 Underflow Subnormal Inexact Rounded
emax391 toSci -9.999E-999999999 -> -9.999E-999999999
emax392 toSci -9.999E+999999999 -> -9.999E+999999999
emax393 toSci -9.999E+1000000000 -> -Infinity Overflow Inexact Rounded
-- Now check 854 rounding of subnormals and proper underflow to 0
precision: 5
maxExponent: 999
rounding: half_even
emax400 toSci 1.0000E-999 -> 1.0000E-999
emax401 toSci 0.1E-999 -> 1E-1000 Subnormal
emax402 toSci 0.1000E-999 -> 1.000E-1000 Subnormal
emax403 toSci 0.0100E-999 -> 1.00E-1001 Subnormal
emax404 toSci 0.0010E-999 -> 1.0E-1002 Subnormal
emax405 toSci 0.0001E-999 -> 1E-1003 Subnormal
emax406 toSci 0.00010E-999 -> 1E-1003 Subnormal Rounded
emax407 toSci 0.00013E-999 -> 1E-1003 Underflow Subnormal Inexact Rounded
emax408 toSci 0.00015E-999 -> 2E-1003 Underflow Subnormal Inexact Rounded
emax409 toSci 0.00017E-999 -> 2E-1003 Underflow Subnormal Inexact Rounded
emax410 toSci 0.00023E-999 -> 2E-1003 Underflow Subnormal Inexact Rounded
emax411 toSci 0.00025E-999 -> 2E-1003 Underflow Subnormal Inexact Rounded
emax412 toSci 0.00027E-999 -> 3E-1003 Underflow Subnormal Inexact Rounded
emax413 toSci 0.000149E-999 -> 1E-1003 Underflow Subnormal Inexact Rounded
emax414 toSci 0.000150E-999 -> 2E-1003 Underflow Subnormal Inexact Rounded
emax415 toSci 0.000151E-999 -> 2E-1003 Underflow Subnormal Inexact Rounded
emax416 toSci 0.000249E-999 -> 2E-1003 Underflow Subnormal Inexact Rounded
emax417 toSci 0.000250E-999 -> 2E-1003 Underflow Subnormal Inexact Rounded
emax418 toSci 0.000251E-999 -> 3E-1003 Underflow Subnormal Inexact Rounded
emax419 toSci 0.00009E-999 -> 1E-1003 Underflow Subnormal Inexact Rounded
emax420 toSci 0.00005E-999 -> 0E-1003 Underflow Subnormal Inexact Rounded
emax421 toSci 0.00003E-999 -> 0E-1003 Underflow Subnormal Inexact Rounded
emax422 toSci 0.000009E-999 -> 0E-1003 Underflow Subnormal Inexact Rounded
emax423 toSci 0.000005E-999 -> 0E-1003 Underflow Subnormal Inexact Rounded
emax424 toSci 0.000003E-999 -> 0E-1003 Underflow Subnormal Inexact Rounded
emax425 toSci 0.001049E-999 -> 1.0E-1002 Underflow Subnormal Inexact Rounded
emax426 toSci 0.001050E-999 -> 1.0E-1002 Underflow Subnormal Inexact Rounded
emax427 toSci 0.001051E-999 -> 1.1E-1002 Underflow Subnormal Inexact Rounded
emax428 toSci 0.001149E-999 -> 1.1E-1002 Underflow Subnormal Inexact Rounded
emax429 toSci 0.001150E-999 -> 1.2E-1002 Underflow Subnormal Inexact Rounded
emax430 toSci 0.001151E-999 -> 1.2E-1002 Underflow Subnormal Inexact Rounded
emax432 toSci 0.010049E-999 -> 1.00E-1001 Underflow Subnormal Inexact Rounded
emax433 toSci 0.010050E-999 -> 1.00E-1001 Underflow Subnormal Inexact Rounded
emax434 toSci 0.010051E-999 -> 1.01E-1001 Underflow Subnormal Inexact Rounded
emax435 toSci 0.010149E-999 -> 1.01E-1001 Underflow Subnormal Inexact Rounded
emax436 toSci 0.010150E-999 -> 1.02E-1001 Underflow Subnormal Inexact Rounded
emax437 toSci 0.010151E-999 -> 1.02E-1001 Underflow Subnormal Inexact Rounded
emax440 toSci 0.10103E-999 -> 1.010E-1000 Underflow Subnormal Inexact Rounded
emax441 toSci 0.10105E-999 -> 1.010E-1000 Underflow Subnormal Inexact Rounded
emax442 toSci 0.10107E-999 -> 1.011E-1000 Underflow Subnormal Inexact Rounded
emax443 toSci 0.10113E-999 -> 1.011E-1000 Underflow Subnormal Inexact Rounded
emax444 toSci 0.10115E-999 -> 1.012E-1000 Underflow Subnormal Inexact Rounded
emax445 toSci 0.10117E-999 -> 1.012E-1000 Underflow Subnormal Inexact Rounded
emax450 toSci 1.10730E-1000 -> 1.107E-1000 Underflow Subnormal Inexact Rounded
emax451 toSci 1.10750E-1000 -> 1.108E-1000 Underflow Subnormal Inexact Rounded
emax452 toSci 1.10770E-1000 -> 1.108E-1000 Underflow Subnormal Inexact Rounded
emax453 toSci 1.10830E-1000 -> 1.108E-1000 Underflow Subnormal Inexact Rounded
emax454 toSci 1.10850E-1000 -> 1.108E-1000 Underflow Subnormal Inexact Rounded
emax455 toSci 1.10870E-1000 -> 1.109E-1000 Underflow Subnormal Inexact Rounded
-- make sure sign OK
emax456 toSci -0.10103E-999 -> -1.010E-1000 Underflow Subnormal Inexact Rounded
emax457 toSci -0.10105E-999 -> -1.010E-1000 Underflow Subnormal Inexact Rounded
emax458 toSci -0.10107E-999 -> -1.011E-1000 Underflow Subnormal Inexact Rounded
emax459 toSci -0.10113E-999 -> -1.011E-1000 Underflow Subnormal Inexact Rounded
emax460 toSci -0.10115E-999 -> -1.012E-1000 Underflow Subnormal Inexact Rounded
emax461 toSci -0.10117E-999 -> -1.012E-1000 Underflow Subnormal Inexact Rounded
-- '999s' cases
emax464 toSci 999999E-999 -> 1.0000E-993 Inexact Rounded
emax465 toSci 99999.0E-999 -> 9.9999E-995 Rounded
emax466 toSci 99999.E-999 -> 9.9999E-995
emax467 toSci 9999.9E-999 -> 9.9999E-996
emax468 toSci 999.99E-999 -> 9.9999E-997
emax469 toSci 99.999E-999 -> 9.9999E-998
emax470 toSci 9.9999E-999 -> 9.9999E-999
emax471 toSci 0.99999E-999 -> 1.0000E-999 Underflow Subnormal Inexact Rounded
emax472 toSci 0.099999E-999 -> 1.000E-1000 Underflow Subnormal Inexact Rounded
emax473 toSci 0.0099999E-999 -> 1.00E-1001 Underflow Subnormal Inexact Rounded
emax474 toSci 0.00099999E-999 -> 1.0E-1002 Underflow Subnormal Inexact Rounded
emax475 toSci 0.000099999E-999 -> 1E-1003 Underflow Subnormal Inexact Rounded
emax476 toSci 0.0000099999E-999 -> 0E-1003 Underflow Subnormal Inexact Rounded
emax477 toSci 0.00000099999E-999 -> 0E-1003 Underflow Subnormal Inexact Rounded
emax478 toSci 0.000000099999E-999 -> 0E-1003 Underflow Subnormal Inexact Rounded
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -