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 |
Description
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)
Change History (3)
Changed 9 years ago by sarahmackey
comment:1 Changed 9 years ago by godiard
Is solved in the git repository https://github.com/godiard/sugarlabs-calculate
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.
Example negative value inputs