#11176 NORM 1.75-so: Pippy divide by zero error in factorial example

Zarro Boogs per Child bugtracker at laptop.org
Wed Aug 24 09:24:42 EDT 2011


#11176: Pippy divide by zero error in factorial example
----------------------------+-----------------------------------------------
 Reporter:  tonyforster     |                 Owner:  cjb          
     Type:  defect          |                Status:  new          
 Priority:  normal          |             Milestone:  1.75-software
Component:  pippy-activity  |               Version:  not specified
 Keywords:                  |           Next_action:  never set    
 Verified:  0               |   Deployment_affected:               
Blockedby:                  |              Blocking:               
----------------------------+-----------------------------------------------
 Possibly as a result of the faster XO-1.75 processor speed, the factorial
 example in pippy has a divide by zero error for calculating 2 factorial

 at line 29 it prints the reciprocal of the elapsed time which is rounded
 to zero

 possible solution, print elapsed time, delta, rather than 1/delta

-- 
Ticket URL: <http://dev.laptop.org/ticket/11176>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list