Changeset 8736

Show
Ignore:
Timestamp:
01/17/06 16:26:24 (3 years ago)
Author:
audreyt
Message:

* 1**Inf, 0**0 and Inf**0 is regularted to 1 in this release.

Pending p6l.

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim/Numeric.hs

    r8710 r8736  
    5858    if num1 == (1 :: VNum) then return (VInt 1) else do 
    5959    num2 <- fromVal =<< fromVal' y 
     60    if num2 == (0 :: VNum) then return (VInt 1) else do 
    6061    case reverse $ show (num2 :: VNum) of 
    6162        ('0':'.':_) -> do 
  • t/operators/arith.t

    r8710 r8736  
    44use Test; 
    55 
    6 plan 185; 
     6plan 186; 
    77 
    88my $five = abs(-5); 
     
    312312is Inf*Inf/Inf, NaN; 
    313313is Inf**0, 1; 
     314is 0**0, 1; 
    314315is 0**Inf, 0; 
    315316