Timeline for Solve binomial coefficient without lookup
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 28, 2021 at 15:11 | comment | added | Mr. Polywhirl | Thanks, this all makes sense. I forgot about solving for a quadratic! | |
Jan 28, 2021 at 15:11 | vote | accept | Mr. Polywhirl | ||
Jan 28, 2021 at 6:33 | comment | added | Blindman67 |
@tsh round rounds down Math.round(1.2) === 1 , ceil rounds up Math.ceil(1.2) === 2
|
|
Jan 28, 2021 at 6:30 | comment | added | tsh |
So, any reason to choice Math.ceil instead of Math.round ? Will it works better with float point errors?
|
|
Jan 28, 2021 at 5:59 | comment | added | Blindman67 |
@tsh binomial coefficients are positive integer values. Math.ceil rounds the value up if it is not an integer.
|
|
Jan 28, 2021 at 5:22 | comment | added | tsh |
What is Math.ceil for?
|
|
Jan 28, 2021 at 4:31 | history | answered | Blindman67 | CC BY-SA 4.0 |