-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
console.log(Decimal.gamma(-49.5))
// Expected Result: 7.322269689234166e-64
// Actual Result: 7.322269689234166e-64
console.log(Decimal.gamma(-50.5))
// Expected Result: -1.4499543939077525e-65
// Actual Result: 0
console.log(Decimal.gamma(-51.5))
// Expected Result: 2.8154454250635958e-67
// Actual Result: 0
break_eternity.js/src/index.ts
Lines 223 to 228 in f5a0513
if (n < -50) { | |
if (n === Math.trunc(n)) { | |
return Number.NEGATIVE_INFINITY; | |
} | |
return 0; | |
} |
Metadata
Metadata
Assignees
Labels
No labels