Opened 9 years ago

Closed 7 years ago

#4826 closed defect (fixed)

Incorrect output when solving a negative factorial

Reported by: sarahmackey Owned by: sarahmackey
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Calculate Version: Unspecified
Severity: Minor Keywords:
Cc: castelliam, JoyeNettles Distribution/OS: Fedora
Bug Status: New


When the user inputs a negative integer within the factorial function the result is just the number that is put into the function. The calculator prints it out and it appears that is the correct answer. However, the answer should not be defined because there is no factorial value of a negative integer.

for example:

input: fac(-5)
expected output: error or none
actual output: -5.00000000

Version: Using VirtualBox (firmware), Fedora Release 20 Heisenbug (Build), Sugar 0.103.2, Ubuntu 64-bit v.14.04.1

Attachments (1)

Screen Shot 2015-02-10 at 9.49.37 PM.png (79.4 KB) - added by sarahmackey 9 years ago.
Example negative value inputs

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by sarahmackey

Example negative value inputs

comment:1 Changed 9 years ago by godiard

Is solved in the git repository
we need release a new version

comment:2 Changed 7 years ago by quozl

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.