1 !Program to test SCALE intrinsic function.
4 call test_real4 (3.0, 2)
5 call test_real4 (33.0, -2)
6 call test_real4 (-3., 2)
7 call test_real4 (0., 3)
8 call test_real8 (0._8
, 3)
9 call test_real8 (3.0_8
, 4)
10 call test_real8 (33.0_8
, -4)
11 call test_real8 (-33._8
, 4)
13 subroutine test_real4 (orig
, i
)
19 if (abs (x
- y
) .gt
. abs(x
* 1e-6)) call abort
22 subroutine test_real8 (orig
, i
)
28 if (abs (x
- y
) .gt
. abs(x
* 1e-6)) call abort