Changeset 8736
- Timestamp:
- 01/17/06 16:26:24 (3 years ago)
- Files:
-
- 2 modified
-
src/Pugs/Prim/Numeric.hs (modified) (1 diff)
-
t/operators/arith.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Prim/Numeric.hs
r8710 r8736 58 58 if num1 == (1 :: VNum) then return (VInt 1) else do 59 59 num2 <- fromVal =<< fromVal' y 60 if num2 == (0 :: VNum) then return (VInt 1) else do 60 61 case reverse $ show (num2 :: VNum) of 61 62 ('0':'.':_) -> do -
t/operators/arith.t
r8710 r8736 4 4 use Test; 5 5 6 plan 18 5;6 plan 186; 7 7 8 8 my $five = abs(-5); … … 312 312 is Inf*Inf/Inf, NaN; 313 313 is Inf**0, 1; 314 is 0**0, 1; 314 315 is 0**Inf, 0; 315 316
