aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/tokenizer/numbers.good
blob: 64a04e934c07d6916477470aa3c4bfef543ab83c (plain)
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


int a = 0;
int b = 123;

float c = 0;
float d = 1.2;
float e = 12.34;
float f = 1e3;
float g = 12e34;
float h = 1.2e3;
float i = 12.34e56;
float j = 1E3;

int e3 = 1;
int E3 = 2;

int k = 1_000;
int l = 1__0;
int m = 10_;
int n = 10__;
int o = 1_0_0;
float p = 1_.2_e3_;

int q = 0x0;
int r = 0xf;
int s = 0x0001;
int t = 0x09af;
int u = 0xa_b_c;
int w = 0xABC;
int x = 0x123;