Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wheelerof4te
on March 31, 2022
|
parent
|
context
|
favorite
| on:
How to compare floats in Python
Use the round function in that case.
eru
on March 31, 2022
[–]
How is that going to help? What precision do you want to round to?
You know that at big enough values, floating point numbers are farther apart than integers?
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: