Languages
[Edit]
EN

Python - math.floor() method example

0 points
Created by:
Lennox
785

The math.floor() function returns a value that is smaller than or equal to the argument - the result of round down operation.  


1. Documentation

Edit
Syntax
Parametersnumber - number that specifies the number to round down.
Result

Rounded down number value.

Descriptionfloor is a method that takes only one parameter and returns a rounded down value.

2. Rounding with precision down-to n places example

Edit

References

Edit
  1. Floor and ceiling functions - Wikipedia

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Cross technology - Math.floor()

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join