Better HN
topnewbestaskshowjobs
Log inSign up

4Data

2 karma · joined May 11, 2015 (11y ago) · 2 submissions

Submissions

comment 11y ago · link · parent

Hmm, pretty sure floor rounds a number downward to its nearest integer. So Math.floor(-15.5) would be 15.

https://developer.mozilla.org/pt-PT/docs/Web/JavaScript/Refe...

comment 11y ago · link · parent

Can you give an example of a pendulum swinging upwards? Is that an inverted pendulum? [1]

[1] https://www.youtube.com/watch?v=5oGYCxkgnHQ