Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialYifang kuo
Front End Web Development Techdegree Student 12,376 PointsI cant find the answer of this question
Math.floor will round down decimal number___no matter what
1 Answer
tobiaskrause
9,160 PointsThe answer is down. Math.floor
MDN (Mozilla Dev Network) description:
The Math.floor() function returns the largest integer less than or equal to a given number.
45.95 will be 45 and -45.95 will become -46
Edit: FYI https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Math/floor