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

Fix the rounding issue for numeric type formatting #650

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Commits on Jul 1, 2024

  1. Fix the rounding issue for numeric type formatting

    Resolve the current issue with the DecimalFormat class when the incoming obj is of type Double or Float. For example, if a Double type value of 1.005 is passed in, and the corresponding cell in Excel is of numeric type and set to keep two decimal places.  Formatting the Double value 1.005 will be problematic; it will be formatted as 1.00, which is inconsistent with the behavior of Excel and does not perform rounding correctly
    YUFEIFUT authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    7f56717 View commit details
    Browse the repository at this point in the history