Opened 9 years ago

Closed 9 years ago

#4808 closed defect (fixed)

Factorial Of a Negative Integer and decimal numbers

Reported by: vikramahuja1001 Owned by:
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Calculate Version: Unspecified
Severity: Unspecified Keywords: Calculate Activity
Cc: Distribution/OS: Ubuntu
Bug Status: Unconfirmed

Description

Even though the factorial of a negative integer is not defined, Calculate Activity returns the factorial of a negative integer as that negative integer itself.

fac(-1) : -1
fac(-2) : -2
fac(-100) : -100

For a number like 0.5 it did not give any information. It can give information like factorials are only possible for non-negative integers.

Change History (1)

comment:1 Changed 9 years ago by vikramahuja1001

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