#1647: Constant folding on num type
------------------------------+---------------------------------------------
 Reporter:  grom              |        Type:  bug   
   Status:  new               |    Priority:  normal
Milestone:                    |   Component:  imcc  
  Version:  2.3.0             |    Severity:  medium
 Keywords:  constant folding  |        Lang:        
    Patch:                    |    Platform:        
------------------------------+---------------------------------------------
 {{{
 g...@home$ cat t.pir
 .sub "main"
     .const num DAYS_PER_YEAR = 365.24
     $N0 = 2.96460137564761618e-03 * DAYS_PER_YEAR
     say $N0

     $N1 = DAYS_PER_YEAR * 2.96460137564761618e-03
     say $N1

     $N2 = 2.96460137564761618e-03
     say $N2

     $N3 = DAYS_PER_YEAR
     say $N3
 .end

 g...@home$ parrot t.pir
 0
 0
 0.00296460137564762
 365.24
 }}}

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1647>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to