Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
HWR_14
on June 2, 2022
|
parent
|
context
|
favorite
| on:
The curse of strong typing
Float divided by int or int divided by float is also an issue. Does 4.25 / 2 equal 2.125 or 2? Does 16 / 3.25 equal 4 or 5 or some floating point number in between?
throwawaymaths
on June 2, 2022
[–]
You do what FIMUL does. The other options are silly.
HWR_14
on June 2, 2022
|
parent
[–]
I don't understand. You want to convert everything to floats all the time? Then just start and stay in float-land and never use ints.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: