Given that one of the main reason computers were invented was to solve mathematical problems quickly, it is no wonder that all the modern programmi...
For further actions, you may consider blocking this person and/or reporting abuse
Nice write up. You could add an example with a negative number for
Math.round()
.About the use of
Infinity
, I think it’s useful when you are comparing results. If you do something likeif(1/x > 1/y)
and one ofx
ory
turns out to be0
, then the comparison still works.Thanks! I've added the example and your note on the use of infinity.
On your second decrementing example, did you mean to have only one
-
sign?Oops. My mistake. Fixed. Thanks!
Nice post,how do you add the black background with your coding examples?
Hi! I just set what I want to appear as code in a "code block" by surrounding it with three backticks "`" at the start and at the end. Check this out for examples.