-
Notifications
You must be signed in to change notification settings - Fork 18
Fixing DBL to FXP conversion #198
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
base: main
Are you sure you want to change the base?
Conversation
|
Bleep bloop! LabVIEW Diff Robot here with some diffs served up hot for your pull request. Notice something funny? Help fix me on my GitHub repo. |
|
Bleep bloop! LabVIEW Diff Robot here with some diffs served up hot for your pull request. Notice something funny? Help fix me on my GitHub repo. |
|
Bleep bloop! LabVIEW Diff Robot here with some diffs served up hot for your pull request. Notice something funny? Help fix me on my GitHub repo. |
|
Bleep bloop! LabVIEW Diff Robot here with some diffs served up hot for your pull request. Notice something funny? Help fix me on my GitHub repo. |







TODO: Check the above box with an 'x' indicating you've read and followed CONTRIBUTING.md.
What does this Pull Request accomplish?
DBL to FXP conversion is incorrect in FPGA Addon for some FXP datatypes
Why should this Pull Request be merged?
Adds a guard for small negative floating-point values in the FXP conversion. Values that would truncate to zero are returned as 0 instead of being incorrectly converted to the minimum fixed-point value. This prevents edge-case errors while preserving the existing conversion logic.
What testing has been done?
Experiment VI

Observation after fix

delta is .03125 so any value i.e data/delta > .5 it will round to delta in this case it will round to -.03125.
delta is .03125 so any value i.e data/delta < .5 it will round to 0 in this case it will round to -.03125.
