Skip to content

These is no double to decimal conversion with ulp rounding #103

@agdavydov81

Description

@agdavydov81

As I was discovered at big project with XXX, the double data some times come with some small errors at the end of mantissa.

For example 3.000000000000002E+05 or 7.799999999999998E-02

In any case the exponent can be any, but the number of significant digits is not very big.

And unfortunately these is no any function in DFP to fix such error.
Of course, I can unpack the DFP to mantissa and exponent, find appropriate number and pack it back to DFP by my own hands,
but I think such function should be the part of the library.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions