-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api: support non-traditional key signatures #81
Conversation
ecf149b
to
615b160
Compare
const auto intAlter = static_cast<int>( xmlAlter ); | ||
const auto micro = xmlAlter - static_cast<mx::core::DecimalType> ( intAlter ); | ||
const auto microDistance = std::abs( micro ); | ||
if( microDistance >= 0.000000000001 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want, you can use std::numeric_limits<double>::epsilon()
which gives the smallest increment of the numeric type T you provide it with.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll play around with that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't wait to use this :) Ty for adding it!
Closes #70
Replaces #77