false*NaN = 0.0

while convert(Int,false)*NaN = NaN

Where can I read up on this?

Some breadcrumbs:

The executed function has the explicit comment:

# make `false` a "strong zero": false*NaN == 0.0

Comment added in PR: https://github.com/JuliaLang/julia/pull/23433/
references https://github.com/JuliaLang/julia/issues/19168#issuecomment-324734034

2 Likes