-
Notifications
You must be signed in to change notification settings - Fork 12
feat: mimic excel behavior to convert float to string #292
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
Conversation
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.
Perfect
rust_decimal
smart display for float representation as stringThere 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.
LGTM, thanks
src/types/dtype.rs
Outdated
/// ... | ... | ... | ||
/// 123456.123456789 | 123456.1235 | 123456.1 | ||
/// | ||
/// Excel also trims trailing zeros and the decimal point if there are no fractional part. |
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.
/// Excel also trims trailing zeros and the decimal point if there are no fractional part. | |
/// Excel also trims trailing zeros and the decimal point if there is no fractional part. |
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.
src/types/dtype.rs
Outdated
/// Excel also trims trailing zeros and the decimal point if there are no fractional part. | ||
/// | ||
/// We have no notion of wide cell or standard cell here so we keep at most 9 digits after the | ||
/// decimal point and trim trailing zeros. |
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.
/// decimal point and trim trailing zeros. | |
/// decimal point and trim trailing zeroes. |
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 prefer this spelling which is more common
closes #289