1// Copyright JS Foundation and other contributors, http://js.foundation
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15print (777E7777777777 == Infinity)
16print (-777E7777777777 == -Infinity)
17print (777E-7777777777 == 0)
18print (-777E-7777777777 == -0)
19
20print (100E307 == Infinity)
21print (10E307 == 1E308)
22print (10E308 == Infinity)
23print (1E308 == 1E308)
24print (0.1E309 == 1E308)
25print (0.1E310 == Infinity)
26
27print (-100E307 == -Infinity)
28print (-10E307 == -1E308)
29print (-10E308 == -Infinity)
30print (-1E308 == -1E308)
31print (-0.1E309 == -1E308)
32print (-0.1E310 == -Infinity)
33
34print (5E-325 == 0)
35print (50E-325 == 5E-324)
36print (0.5E-324 == 0)
37print (5E-324 == 5E-324)
38print (0.05E-323 == 0)
39print (0.5E-323 == 5E-324)
40
41print (-5E-325 == -0)
42print (-50E-325 == -5E-324)
43print (-0.5E-324 == -0)
44print (-5E-324 == -5E-324)
45print (-0.05E-323 == -0)
46print (-0.5E-323 == -5E-324)
47