Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
elseweather
on April 17, 2023
|
parent
|
context
|
favorite
| on:
I liked this simple calculus exercise
It's floor(_) - as in, floor(1.999) = 0, but floor(2.001) = 2. If you look carefully the upper flange of the [] square brackets is missing, which makes it a floor.
https://en.wikipedia.org/wiki/Floor_and_ceiling_functions
_dain_
on April 17, 2023
[–]
> floor(1.999) = 0
it's 1 not 0
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://en.wikipedia.org/wiki/Floor_and_ceiling_functions