-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[C++][Decimal] Use 0E+1
not 0.E+1
for broader compatibility
#44273
Comments
kou
changed the title
[C++][Decimal] Use
[C++][Decimal] Use Oct 1, 2024
0.0E+1
not 0.E+1
for broader compatibility0E+1
not 0.E+1
for broader compatibility
kou
added a commit
to kou/arrow
that referenced
this issue
Oct 1, 2024
…bility Most environments such as Python, Node.js, PostgreSQL and MySQL accepts `0.E+1` but some environments such as Ruby don't accept `0.E+1`. More environments accept `0.0E+1` or `0E+1` than `0.E+1`. Use `0E+1` not `0.E+1` for broader compatibility.
kou
added a commit
to kou/arrow
that referenced
this issue
Oct 2, 2024
…bility Most environments such as Python, Node.js, PostgreSQL and MySQL accepts `0.E+1` but some environments such as Ruby don't accept `0.E+1`. More environments accept `0.0E+1` or `0E+1` than `0.E+1`. Use `0E+1` not `0.E+1` for broader compatibility.
The discussion thread: https://lists.apache.org/thread/w5gymjbdc8c3ggh31lngt6o1dwjcjptd |
kou
added a commit
that referenced
this issue
Oct 9, 2024
…#44275) ### Rationale for this change Most environments such as Python, Node.js, PostgreSQL and MySQL accepts `0.E+1` but some environments such as Ruby don't accept `0.E+1`. More environments accept `0.0E+1` or `0E+1` than `0.E+1`. ### What changes are included in this PR? Use `0E+1` not `0.E+1` for broader compatibility. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * GitHub Issue: #44273 Authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
Issue resolved by pull request 44275 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the enhancement requested
The current decimal implementation omits the fractional part if the fractional part is 0.
For example:
0.E+1
not0.0E+1
Most environments such as Python, Node.js, PostgreSQL and MySQL accepts
0.E+1
but some environments such as Ruby don't accept0.E+1
.Can we use
0E+1
(or0.0E+1
) not0.E+1
for broader compatibility?See also: GH-43877
Component(s)
C++
The text was updated successfully, but these errors were encountered: