ack/lang/cem/ctest/ctconv/conv.cem.g

31 lines
927 B
Plaintext
Raw Normal View History

1985-02-06 21:06:03 +00:00
(int) '\377' = 255
(long) -1 = -1
(float) 12 = 12.000000
(int) 3.14 = 3
(int) 32767L = 32767
(int) -32768L = -32768
(char) 128L = 128
(char) 0377 = 255
(char) -1 = 255
(char) 10000 = 16
From character
1985-02-15 14:23:34 +00:00
char 127, int 127, unsigned 177, long 127
float 127.000000
char 255, int 255, unsigned 377, long 255
float 255.000000
char 255, int 255, unsigned 377, long 255
float 255.000000
1985-02-06 21:06:03 +00:00
From integer
1985-02-15 14:23:34 +00:00
char 192, int -64, unsigned 177700, long -64
float -64.000000
1985-02-06 21:06:03 +00:00
From long
1985-02-15 14:23:34 +00:00
char 253, int -3, unsigned 177775, long -3
float -3.000000
1985-02-06 21:06:03 +00:00
From float
char 121, int 121, unsigned 171, long 121, float 121.500000
char 0, int 0, unsigned 0, long 0, float 0.000100
int 32766, unsigned 77776, long 32766, float 32766.000000
long 1223432064, float 1223432064.000000
a[l] (l==3) -17
a[3l] -17