Repository navigation
Conversation
dgirardeau
left a comment
There was a problem hiding this comment.
Okay so we should really have only one 'epsilon' and this would really be CCCoreLib epsilon with a 'not that small value'. Because it's not a question of type, but a question of typical units / scales.
|
Oh, alright! So I think when we discussed this before we talked about adding a float version of the var. So according to your comment, that would look like this: constexpr double ZERO_TOLERANCE_D = static_cast<double>(std::numeric_limits<float>::epsilon());
constexpr float ZERO_TOLERANCE_F = std::numeric_limits<float>::epsilon();Then we can at least avoid extra casting and it's more explicit. Would we then use |
Actually, given that we changing where |
|
Yes I was going to say that there should only be one 'value' for ZERO_TOLERANCE (in two flavors). And if we need another epsilon value, then we would use something else than ZERO_TOLERANCE. |
|
(or is flavours? :D ) |
|
Is this a reasonable explanation for the comments?
|
|
I guess it's std::numeric_limits'<'float'>'::epsilon() but markdown is removing the '<'float'>' or '<'double'>' ? :D. Then yes. |
|
Ah yes :-) |
Part of #20