Skip to content

[C++][Decimal] Use 0E+1 not 0.E+1 for broader compatibility #44273

@kou

Description

@kou

Describe the enhancement requested

The current decimal implementation omits the fractional part if the fractional part is 0.
For example: 0.E+1 not 0.0E+1

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.

Can we use 0E+1 (or 0.0E+1) not 0.E+1 for broader compatibility?

See also: GH-43877

Component(s)

C++

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions