File: hexadecimal_float.c

package info (click to toggle)
indent 2.2.12-4%2Bdeb12u3
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 5,980 kB
  • sloc: ansic: 37,897; sh: 5,187; makefile: 708; yacc: 291; sed: 16; cpp: 5
file content (17 lines) | stat: -rw-r--r-- 365 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Hexadecimal */
double xpi = 0x1.921fb54442d18p+1;
double xa = 0xe.fp-1;
double xb = 0xe.fP-1;
double xc = 0xf.P+1;
double xd = 0x.fP+1;
/* hexadecimal floats must have exponent part */

/* Decimal */
double dpi = 3.141592653589793e+0;
double da = 1.2e-1;
double db = 1.2E-1;
double dc = 1.E+1;
double dd = .1E+1;
double de = 1.2;
double df = 1.;
double dg = .1;