Follow

Okay, I these are the same minus a couple least significant digits. Right?

So my thing must not be rendering for a different reason.

· · Web · 1 · 0 · 0

@gudenau Second column first number has different sign.
Also, I am not sure what you're doing, but if you're comparing floats, make sure you don't just do == and maybe adjust the epsilon to be more forgiving.

@Neui The one on the left is Java and the one on the right is C++. Would the sign of ever 0 mater?

@gudenau

That depends on if it's 0 or 0.000000000000916, and what it's being used for. i.e. if it's some sort of culling threshold and you're drawing everything at 0, flipping sign could cause everything to be drawn or not. *shrug*

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!