Math.floor()

returns the nearest LARGEST integer LESS THAN (or equal to) a given number

Math.floor(0.4) // 0

Math.floor(0.9) // 0

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>