File: nextup.input

package info (click to toggle)
libdfp 1.0.17-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,172 kB
  • sloc: ansic: 255,724; sh: 4,225; makefile: 703; awk: 461; python: 432; cpp: 254
file content (31 lines) | stat: -rw-r--r-- 1,593 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# name nextup
# arg1 decimal
# ret  decimal

-0                                                  DEC_SUBNORMAL_MIN
0                                                   DEC_SUBNORMAL_MIN

#if x is the negative number of least magnitude in the type of x,
# nextup(x) is −0 if the type has  signed  zeros  and  is  0  otherwise.
-DEC_SUBNORMAL_MIN                                  -0.0

1                                                   1.000001 decimal32
2                                                   2.000001 decimal32

3                                                   3.000001 decimal32
3                                                   3.000000000000001 decimal64
3                                                   3.000000000000000000000000000000001 decimal128

9.999998E+DEC_MAX_EXP                               9.999999E+DEC_MAX_EXP  decimal32
9.999999999999998E+DEC_MAX_EXP                      9.999999999999999E+DEC_MAX_EXP decimal64
9.999999999999999999999999999999998E+DEC_MAX_EXP    9.999999999999999999999999999999999E+DEC_MAX_EXP decimal128

-1E-DEC_MIN_EXP                                     -0.999999E-DEC_MIN_EXP decimal32
-1E-DEC_MIN_EXP                                     -0.999999999999999E-DEC_MIN_EXP decimal64
-1E-DEC_MIN_EXP                                     -0.999999999999999999999999999999999E-DEC_MIN_EXP decimal128

NaN                                                 NaN

Inf                                                 Inf
-Inf                                                -DEC_MAX
DEC_MAX                                             Inf