1--TEST--
2Test / operator : 64bit long tests
3--SKIPIF--
4<?php
5if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
6?>
7--FILE--
8<?php
9
10define("MAX_64Bit", 9223372036854775807);
11define("MAX_32Bit", 2147483647);
12define("MIN_64Bit", -9223372036854775807 - 1);
13define("MIN_32Bit", -2147483647 - 1);
14
15$longVals = array(
16    MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
17    MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
18    MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
19);
20
21$otherVals = array(0, 1, -1, 7, 9, 65, -44, MAX_32Bit, MAX_64Bit);
22
23error_reporting(E_ERROR);
24
25foreach ($longVals as $longVal) {
26    foreach($otherVals as $otherVal) {
27        echo "--- testing: $longVal / $otherVal ---\n";
28        try {
29            var_dump($longVal/$otherVal);
30        } catch (\Throwable $e) {
31            echo get_class($e) . ': ' . $e->getMessage() . \PHP_EOL;
32        }
33    }
34}
35
36foreach ($otherVals as $otherVal) {
37   foreach($longVals as $longVal) {
38       echo "--- testing: $otherVal / $longVal ---\n";
39      var_dump($otherVal/$longVal);
40   }
41}
42
43?>
44--EXPECT--
45--- testing: 9223372036854775807 / 0 ---
46DivisionByZeroError: Division by zero
47--- testing: 9223372036854775807 / 1 ---
48int(9223372036854775807)
49--- testing: 9223372036854775807 / -1 ---
50int(-9223372036854775807)
51--- testing: 9223372036854775807 / 7 ---
52int(1317624576693539401)
53--- testing: 9223372036854775807 / 9 ---
54float(1.0248191152060861E+18)
55--- testing: 9223372036854775807 / 65 ---
56float(1.4189803133622733E+17)
57--- testing: 9223372036854775807 / -44 ---
58float(-2.0962209174669946E+17)
59--- testing: 9223372036854775807 / 2147483647 ---
60float(4294967298)
61--- testing: 9223372036854775807 / 9223372036854775807 ---
62int(1)
63--- testing: -9223372036854775808 / 0 ---
64DivisionByZeroError: Division by zero
65--- testing: -9223372036854775808 / 1 ---
66int(-9223372036854775808)
67--- testing: -9223372036854775808 / -1 ---
68float(9.223372036854776E+18)
69--- testing: -9223372036854775808 / 7 ---
70float(-1.3176245766935393E+18)
71--- testing: -9223372036854775808 / 9 ---
72float(-1.0248191152060861E+18)
73--- testing: -9223372036854775808 / 65 ---
74float(-1.4189803133622733E+17)
75--- testing: -9223372036854775808 / -44 ---
76float(2.0962209174669946E+17)
77--- testing: -9223372036854775808 / 2147483647 ---
78float(-4294967298)
79--- testing: -9223372036854775808 / 9223372036854775807 ---
80float(-1)
81--- testing: 2147483647 / 0 ---
82DivisionByZeroError: Division by zero
83--- testing: 2147483647 / 1 ---
84int(2147483647)
85--- testing: 2147483647 / -1 ---
86int(-2147483647)
87--- testing: 2147483647 / 7 ---
88float(306783378.14285713)
89--- testing: 2147483647 / 9 ---
90float(238609294.1111111)
91--- testing: 2147483647 / 65 ---
92float(33038209.953846153)
93--- testing: 2147483647 / -44 ---
94float(-48806446.52272727)
95--- testing: 2147483647 / 2147483647 ---
96int(1)
97--- testing: 2147483647 / 9223372036854775807 ---
98float(2.328306435454494E-10)
99--- testing: -2147483648 / 0 ---
100DivisionByZeroError: Division by zero
101--- testing: -2147483648 / 1 ---
102int(-2147483648)
103--- testing: -2147483648 / -1 ---
104int(2147483648)
105--- testing: -2147483648 / 7 ---
106float(-306783378.28571427)
107--- testing: -2147483648 / 9 ---
108float(-238609294.2222222)
109--- testing: -2147483648 / 65 ---
110float(-33038209.96923077)
111--- testing: -2147483648 / -44 ---
112float(48806446.54545455)
113--- testing: -2147483648 / 2147483647 ---
114float(-1.0000000004656613)
115--- testing: -2147483648 / 9223372036854775807 ---
116float(-2.3283064365386963E-10)
117--- testing: 9223372034707292160 / 0 ---
118DivisionByZeroError: Division by zero
119--- testing: 9223372034707292160 / 1 ---
120int(9223372034707292160)
121--- testing: 9223372034707292160 / -1 ---
122int(-9223372034707292160)
123--- testing: 9223372034707292160 / 7 ---
124float(1.317624576386756E+18)
125--- testing: 9223372034707292160 / 9 ---
126float(1.0248191149674769E+18)
127--- testing: 9223372034707292160 / 65 ---
128float(1.418980313031891E+17)
129--- testing: 9223372034707292160 / -44 ---
130float(-2.09622091697893E+17)
131--- testing: 9223372034707292160 / 2147483647 ---
132float(4294967297)
133--- testing: 9223372034707292160 / 9223372036854775807 ---
134float(0.9999999997671694)
135--- testing: -9223372034707292160 / 0 ---
136DivisionByZeroError: Division by zero
137--- testing: -9223372034707292160 / 1 ---
138int(-9223372034707292160)
139--- testing: -9223372034707292160 / -1 ---
140int(9223372034707292160)
141--- testing: -9223372034707292160 / 7 ---
142float(-1.317624576386756E+18)
143--- testing: -9223372034707292160 / 9 ---
144float(-1.0248191149674769E+18)
145--- testing: -9223372034707292160 / 65 ---
146float(-1.418980313031891E+17)
147--- testing: -9223372034707292160 / -44 ---
148float(2.09622091697893E+17)
149--- testing: -9223372034707292160 / 2147483647 ---
150float(-4294967297)
151--- testing: -9223372034707292160 / 9223372036854775807 ---
152float(-0.9999999997671694)
153--- testing: 2147483648 / 0 ---
154DivisionByZeroError: Division by zero
155--- testing: 2147483648 / 1 ---
156int(2147483648)
157--- testing: 2147483648 / -1 ---
158int(-2147483648)
159--- testing: 2147483648 / 7 ---
160float(306783378.28571427)
161--- testing: 2147483648 / 9 ---
162float(238609294.2222222)
163--- testing: 2147483648 / 65 ---
164float(33038209.96923077)
165--- testing: 2147483648 / -44 ---
166float(-48806446.54545455)
167--- testing: 2147483648 / 2147483647 ---
168float(1.0000000004656613)
169--- testing: 2147483648 / 9223372036854775807 ---
170float(2.3283064365386963E-10)
171--- testing: -2147483649 / 0 ---
172DivisionByZeroError: Division by zero
173--- testing: -2147483649 / 1 ---
174int(-2147483649)
175--- testing: -2147483649 / -1 ---
176int(2147483649)
177--- testing: -2147483649 / 7 ---
178float(-306783378.4285714)
179--- testing: -2147483649 / 9 ---
180float(-238609294.33333334)
181--- testing: -2147483649 / 65 ---
182float(-33038209.984615386)
183--- testing: -2147483649 / -44 ---
184float(48806446.56818182)
185--- testing: -2147483649 / 2147483647 ---
186float(-1.0000000009313226)
187--- testing: -2147483649 / 9223372036854775807 ---
188float(-2.3283064376228985E-10)
189--- testing: 4294967294 / 0 ---
190DivisionByZeroError: Division by zero
191--- testing: 4294967294 / 1 ---
192int(4294967294)
193--- testing: 4294967294 / -1 ---
194int(-4294967294)
195--- testing: 4294967294 / 7 ---
196float(613566756.2857143)
197--- testing: 4294967294 / 9 ---
198float(477218588.2222222)
199--- testing: 4294967294 / 65 ---
200float(66076419.907692306)
201--- testing: 4294967294 / -44 ---
202float(-97612893.04545455)
203--- testing: 4294967294 / 2147483647 ---
204int(2)
205--- testing: 4294967294 / 9223372036854775807 ---
206float(4.656612870908988E-10)
207--- testing: 4294967295 / 0 ---
208DivisionByZeroError: Division by zero
209--- testing: 4294967295 / 1 ---
210int(4294967295)
211--- testing: 4294967295 / -1 ---
212int(-4294967295)
213--- testing: 4294967295 / 7 ---
214float(613566756.4285715)
215--- testing: 4294967295 / 9 ---
216float(477218588.3333333)
217--- testing: 4294967295 / 65 ---
218float(66076419.92307692)
219--- testing: 4294967295 / -44 ---
220float(-97612893.06818181)
221--- testing: 4294967295 / 2147483647 ---
222float(2.0000000004656613)
223--- testing: 4294967295 / 9223372036854775807 ---
224float(4.6566128719931904E-10)
225--- testing: 4294967293 / 0 ---
226DivisionByZeroError: Division by zero
227--- testing: 4294967293 / 1 ---
228int(4294967293)
229--- testing: 4294967293 / -1 ---
230int(-4294967293)
231--- testing: 4294967293 / 7 ---
232float(613566756.1428572)
233--- testing: 4294967293 / 9 ---
234float(477218588.1111111)
235--- testing: 4294967293 / 65 ---
236float(66076419.89230769)
237--- testing: 4294967293 / -44 ---
238float(-97612893.02272727)
239--- testing: 4294967293 / 2147483647 ---
240float(1.9999999995343387)
241--- testing: 4294967293 / 9223372036854775807 ---
242float(4.656612869824786E-10)
243--- testing: 9223372036854775806 / 0 ---
244DivisionByZeroError: Division by zero
245--- testing: 9223372036854775806 / 1 ---
246int(9223372036854775806)
247--- testing: 9223372036854775806 / -1 ---
248int(-9223372036854775806)
249--- testing: 9223372036854775806 / 7 ---
250float(1.3176245766935393E+18)
251--- testing: 9223372036854775806 / 9 ---
252float(1.0248191152060861E+18)
253--- testing: 9223372036854775806 / 65 ---
254float(1.4189803133622733E+17)
255--- testing: 9223372036854775806 / -44 ---
256float(-2.0962209174669946E+17)
257--- testing: 9223372036854775806 / 2147483647 ---
258int(4294967298)
259--- testing: 9223372036854775806 / 9223372036854775807 ---
260float(1)
261--- testing: 9.2233720368548E+18 / 0 ---
262DivisionByZeroError: Division by zero
263--- testing: 9.2233720368548E+18 / 1 ---
264float(9.223372036854776E+18)
265--- testing: 9.2233720368548E+18 / -1 ---
266float(-9.223372036854776E+18)
267--- testing: 9.2233720368548E+18 / 7 ---
268float(1.3176245766935393E+18)
269--- testing: 9.2233720368548E+18 / 9 ---
270float(1.0248191152060861E+18)
271--- testing: 9.2233720368548E+18 / 65 ---
272float(1.4189803133622733E+17)
273--- testing: 9.2233720368548E+18 / -44 ---
274float(-2.0962209174669946E+17)
275--- testing: 9.2233720368548E+18 / 2147483647 ---
276float(4294967298)
277--- testing: 9.2233720368548E+18 / 9223372036854775807 ---
278float(1)
279--- testing: -9223372036854775807 / 0 ---
280DivisionByZeroError: Division by zero
281--- testing: -9223372036854775807 / 1 ---
282int(-9223372036854775807)
283--- testing: -9223372036854775807 / -1 ---
284int(9223372036854775807)
285--- testing: -9223372036854775807 / 7 ---
286int(-1317624576693539401)
287--- testing: -9223372036854775807 / 9 ---
288float(-1.0248191152060861E+18)
289--- testing: -9223372036854775807 / 65 ---
290float(-1.4189803133622733E+17)
291--- testing: -9223372036854775807 / -44 ---
292float(2.0962209174669946E+17)
293--- testing: -9223372036854775807 / 2147483647 ---
294float(-4294967298)
295--- testing: -9223372036854775807 / 9223372036854775807 ---
296int(-1)
297--- testing: -9.2233720368548E+18 / 0 ---
298DivisionByZeroError: Division by zero
299--- testing: -9.2233720368548E+18 / 1 ---
300float(-9.223372036854776E+18)
301--- testing: -9.2233720368548E+18 / -1 ---
302float(9.223372036854776E+18)
303--- testing: -9.2233720368548E+18 / 7 ---
304float(-1.3176245766935393E+18)
305--- testing: -9.2233720368548E+18 / 9 ---
306float(-1.0248191152060861E+18)
307--- testing: -9.2233720368548E+18 / 65 ---
308float(-1.4189803133622733E+17)
309--- testing: -9.2233720368548E+18 / -44 ---
310float(2.0962209174669946E+17)
311--- testing: -9.2233720368548E+18 / 2147483647 ---
312float(-4294967298)
313--- testing: -9.2233720368548E+18 / 9223372036854775807 ---
314float(-1)
315--- testing: 0 / 9223372036854775807 ---
316int(0)
317--- testing: 0 / -9223372036854775808 ---
318int(0)
319--- testing: 0 / 2147483647 ---
320int(0)
321--- testing: 0 / -2147483648 ---
322int(0)
323--- testing: 0 / 9223372034707292160 ---
324int(0)
325--- testing: 0 / -9223372034707292160 ---
326int(0)
327--- testing: 0 / 2147483648 ---
328int(0)
329--- testing: 0 / -2147483649 ---
330int(0)
331--- testing: 0 / 4294967294 ---
332int(0)
333--- testing: 0 / 4294967295 ---
334int(0)
335--- testing: 0 / 4294967293 ---
336int(0)
337--- testing: 0 / 9223372036854775806 ---
338int(0)
339--- testing: 0 / 9.2233720368548E+18 ---
340float(0)
341--- testing: 0 / -9223372036854775807 ---
342int(0)
343--- testing: 0 / -9.2233720368548E+18 ---
344float(-0)
345--- testing: 1 / 9223372036854775807 ---
346float(1.0842021724855044E-19)
347--- testing: 1 / -9223372036854775808 ---
348float(-1.0842021724855044E-19)
349--- testing: 1 / 2147483647 ---
350float(4.656612875245797E-10)
351--- testing: 1 / -2147483648 ---
352float(-4.656612873077393E-10)
353--- testing: 1 / 9223372034707292160 ---
354float(1.08420217273794E-19)
355--- testing: 1 / -9223372034707292160 ---
356float(-1.08420217273794E-19)
357--- testing: 1 / 2147483648 ---
358float(4.656612873077393E-10)
359--- testing: 1 / -2147483649 ---
360float(-4.656612870908988E-10)
361--- testing: 1 / 4294967294 ---
362float(2.3283064376228985E-10)
363--- testing: 1 / 4294967295 ---
364float(2.3283064370807974E-10)
365--- testing: 1 / 4294967293 ---
366float(2.3283064381649995E-10)
367--- testing: 1 / 9223372036854775806 ---
368float(1.0842021724855044E-19)
369--- testing: 1 / 9.2233720368548E+18 ---
370float(1.0842021724855044E-19)
371--- testing: 1 / -9223372036854775807 ---
372float(-1.0842021724855044E-19)
373--- testing: 1 / -9.2233720368548E+18 ---
374float(-1.0842021724855044E-19)
375--- testing: -1 / 9223372036854775807 ---
376float(-1.0842021724855044E-19)
377--- testing: -1 / -9223372036854775808 ---
378float(1.0842021724855044E-19)
379--- testing: -1 / 2147483647 ---
380float(-4.656612875245797E-10)
381--- testing: -1 / -2147483648 ---
382float(4.656612873077393E-10)
383--- testing: -1 / 9223372034707292160 ---
384float(-1.08420217273794E-19)
385--- testing: -1 / -9223372034707292160 ---
386float(1.08420217273794E-19)
387--- testing: -1 / 2147483648 ---
388float(-4.656612873077393E-10)
389--- testing: -1 / -2147483649 ---
390float(4.656612870908988E-10)
391--- testing: -1 / 4294967294 ---
392float(-2.3283064376228985E-10)
393--- testing: -1 / 4294967295 ---
394float(-2.3283064370807974E-10)
395--- testing: -1 / 4294967293 ---
396float(-2.3283064381649995E-10)
397--- testing: -1 / 9223372036854775806 ---
398float(-1.0842021724855044E-19)
399--- testing: -1 / 9.2233720368548E+18 ---
400float(-1.0842021724855044E-19)
401--- testing: -1 / -9223372036854775807 ---
402float(1.0842021724855044E-19)
403--- testing: -1 / -9.2233720368548E+18 ---
404float(1.0842021724855044E-19)
405--- testing: 7 / 9223372036854775807 ---
406float(7.589415207398531E-19)
407--- testing: 7 / -9223372036854775808 ---
408float(-7.589415207398531E-19)
409--- testing: 7 / 2147483647 ---
410float(3.259629012672058E-9)
411--- testing: 7 / -2147483648 ---
412float(-3.259629011154175E-9)
413--- testing: 7 / 9223372034707292160 ---
414float(7.589415209165579E-19)
415--- testing: 7 / -9223372034707292160 ---
416float(-7.589415209165579E-19)
417--- testing: 7 / 2147483648 ---
418float(3.259629011154175E-9)
419--- testing: 7 / -2147483649 ---
420float(-3.2596290096362918E-9)
421--- testing: 7 / 4294967294 ---
422float(1.629814506336029E-9)
423--- testing: 7 / 4294967295 ---
424float(1.6298145059565582E-9)
425--- testing: 7 / 4294967293 ---
426float(1.6298145067154997E-9)
427--- testing: 7 / 9223372036854775806 ---
428float(7.589415207398531E-19)
429--- testing: 7 / 9.2233720368548E+18 ---
430float(7.589415207398531E-19)
431--- testing: 7 / -9223372036854775807 ---
432float(-7.589415207398531E-19)
433--- testing: 7 / -9.2233720368548E+18 ---
434float(-7.589415207398531E-19)
435--- testing: 9 / 9223372036854775807 ---
436float(9.75781955236954E-19)
437--- testing: 9 / -9223372036854775808 ---
438float(-9.75781955236954E-19)
439--- testing: 9 / 2147483647 ---
440float(4.190951587721217E-9)
441--- testing: 9 / -2147483648 ---
442float(-4.190951585769653E-9)
443--- testing: 9 / 9223372034707292160 ---
444float(9.75781955464146E-19)
445--- testing: 9 / -9223372034707292160 ---
446float(-9.75781955464146E-19)
447--- testing: 9 / 2147483648 ---
448float(4.190951585769653E-9)
449--- testing: 9 / -2147483649 ---
450float(-4.190951583818089E-9)
451--- testing: 9 / 4294967294 ---
452float(2.0954757938606086E-9)
453--- testing: 9 / 4294967295 ---
454float(2.0954757933727176E-9)
455--- testing: 9 / 4294967293 ---
456float(2.0954757943484996E-9)
457--- testing: 9 / 9223372036854775806 ---
458float(9.75781955236954E-19)
459--- testing: 9 / 9.2233720368548E+18 ---
460float(9.75781955236954E-19)
461--- testing: 9 / -9223372036854775807 ---
462float(-9.75781955236954E-19)
463--- testing: 9 / -9.2233720368548E+18 ---
464float(-9.75781955236954E-19)
465--- testing: 65 / 9223372036854775807 ---
466float(7.047314121155779E-18)
467--- testing: 65 / -9223372036854775808 ---
468float(-7.047314121155779E-18)
469--- testing: 65 / 2147483647 ---
470float(3.026798368909768E-8)
471--- testing: 65 / -2147483648 ---
472float(-3.026798367500305E-8)
473--- testing: 65 / 9223372034707292160 ---
474float(7.04731412279661E-18)
475--- testing: 65 / -9223372034707292160 ---
476float(-7.04731412279661E-18)
477--- testing: 65 / 2147483648 ---
478float(3.026798367500305E-8)
479--- testing: 65 / -2147483649 ---
480float(-3.0267983660908424E-8)
481--- testing: 65 / 4294967294 ---
482float(1.513399184454884E-8)
483--- testing: 65 / 4294967295 ---
484float(1.5133991841025183E-8)
485--- testing: 65 / 4294967293 ---
486float(1.5133991848072497E-8)
487--- testing: 65 / 9223372036854775806 ---
488float(7.047314121155779E-18)
489--- testing: 65 / 9.2233720368548E+18 ---
490float(7.047314121155779E-18)
491--- testing: 65 / -9223372036854775807 ---
492float(-7.047314121155779E-18)
493--- testing: 65 / -9.2233720368548E+18 ---
494float(-7.047314121155779E-18)
495--- testing: -44 / 9223372036854775807 ---
496float(-4.7704895589362195E-18)
497--- testing: -44 / -9223372036854775808 ---
498float(4.7704895589362195E-18)
499--- testing: -44 / 2147483647 ---
500float(-2.0489096651081506E-8)
501--- testing: -44 / -2147483648 ---
502float(2.0489096641540527E-8)
503--- testing: -44 / 9223372034707292160 ---
504float(-4.770489560046936E-18)
505--- testing: -44 / -9223372034707292160 ---
506float(4.770489560046936E-18)
507--- testing: -44 / 2147483648 ---
508float(-2.0489096641540527E-8)
509--- testing: -44 / -2147483649 ---
510float(2.0489096631999548E-8)
511--- testing: -44 / 4294967294 ---
512float(-1.0244548325540753E-8)
513--- testing: -44 / 4294967295 ---
514float(-1.0244548323155508E-8)
515--- testing: -44 / 4294967293 ---
516float(-1.0244548327925998E-8)
517--- testing: -44 / 9223372036854775806 ---
518float(-4.7704895589362195E-18)
519--- testing: -44 / 9.2233720368548E+18 ---
520float(-4.7704895589362195E-18)
521--- testing: -44 / -9223372036854775807 ---
522float(4.7704895589362195E-18)
523--- testing: -44 / -9.2233720368548E+18 ---
524float(4.7704895589362195E-18)
525--- testing: 2147483647 / 9223372036854775807 ---
526float(2.328306435454494E-10)
527--- testing: 2147483647 / -9223372036854775808 ---
528float(-2.328306435454494E-10)
529--- testing: 2147483647 / 2147483647 ---
530int(1)
531--- testing: 2147483647 / -2147483648 ---
532float(-0.9999999995343387)
533--- testing: 2147483647 / 9223372034707292160 ---
534float(2.3283064359965952E-10)
535--- testing: 2147483647 / -9223372034707292160 ---
536float(-2.3283064359965952E-10)
537--- testing: 2147483647 / 2147483648 ---
538float(0.9999999995343387)
539--- testing: 2147483647 / -2147483649 ---
540float(-0.9999999990686774)
541--- testing: 2147483647 / 4294967294 ---
542float(0.5)
543--- testing: 2147483647 / 4294967295 ---
544float(0.4999999998835847)
545--- testing: 2147483647 / 4294967293 ---
546float(0.5000000001164153)
547--- testing: 2147483647 / 9223372036854775806 ---
548float(2.328306435454494E-10)
549--- testing: 2147483647 / 9.2233720368548E+18 ---
550float(2.328306435454494E-10)
551--- testing: 2147483647 / -9223372036854775807 ---
552float(-2.328306435454494E-10)
553--- testing: 2147483647 / -9.2233720368548E+18 ---
554float(-2.328306435454494E-10)
555--- testing: 9223372036854775807 / 9223372036854775807 ---
556int(1)
557--- testing: 9223372036854775807 / -9223372036854775808 ---
558float(-1)
559--- testing: 9223372036854775807 / 2147483647 ---
560float(4294967298)
561--- testing: 9223372036854775807 / -2147483648 ---
562float(-4294967296)
563--- testing: 9223372036854775807 / 9223372034707292160 ---
564float(1.0000000002328306)
565--- testing: 9223372036854775807 / -9223372034707292160 ---
566float(-1.0000000002328306)
567--- testing: 9223372036854775807 / 2147483648 ---
568float(4294967296)
569--- testing: 9223372036854775807 / -2147483649 ---
570float(-4294967294)
571--- testing: 9223372036854775807 / 4294967294 ---
572float(2147483649)
573--- testing: 9223372036854775807 / 4294967295 ---
574float(2147483648.5)
575--- testing: 9223372036854775807 / 4294967293 ---
576float(2147483649.5)
577--- testing: 9223372036854775807 / 9223372036854775806 ---
578float(1)
579--- testing: 9223372036854775807 / 9.2233720368548E+18 ---
580float(1)
581--- testing: 9223372036854775807 / -9223372036854775807 ---
582int(-1)
583--- testing: 9223372036854775807 / -9.2233720368548E+18 ---
584float(-1)
585