He's using strings to round the floating-point number - to, uh, one decimal - for comparison, rather than using epsilons like everyone else. So, yes, I guess that is the 'fail'. Someone needs to brush up on positional notation.

“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”