Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
stephencanon
on March 11, 2012
|
parent
|
context
|
favorite
| on:
Why does changing 0.1f to 0 slow down performance ...
Actually, (0-0) evaluates to +0 in the default rounding mode, so both of those expressions will typically return +∞.
1/-0 will give you -∞, of course.
lelf
on March 12, 2012
[–]
Well, I meant it as in math notation, not in C.
(Strictly speaking, 1/0 in C is kaboom! (undefined behaviour))
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
1/-0 will give you -∞, of course.