Skip to content
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

Lossless float <--> decimal conversion #15042

Closed

Conversation

pmattione-nvidia
Copy link
Contributor

@pmattione-nvidia pmattione-nvidia commented Feb 13, 2024

Description

Lossless floating <--> decimal conversion for Issue 14169
Note: Only lossless if you use a small enough scaling factor to preserve the precision. If too small defaults back to the old algorithm.
Also small cleanup in rounding code

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

Copy link

copy-pr-bot bot commented Feb 13, 2024

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions github-actions bot added the libcudf Affects libcudf (C++/CUDA) code. label Feb 13, 2024
@@ -26,6 +26,7 @@
#include <algorithm>
#include <cassert>
#include <cmath>
#include <limits>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not include this. Use the <cuda/std/limits> which is already included here
https://github.com/rapidsai/cudf/pull/15042/files#diff-2256e0f59727ecd8f361383f2f94b054b3c03d08ef3717876059d306fd616ab2R23

Likewise, use cuda::std::numeric_limits instead of std::numeric_limits

@PointKernel
Copy link
Member

/ok to test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libcudf Affects libcudf (C++/CUDA) code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants