I'd be careful with comparing floating-point numbers like that. Even if it's guaranteed that this will work, it brings a bad example to the user. Perhaps replace it with a `long` type?