apache / apache/grails-core

BigDecimal with scale of more than 3 gets truncated.

Open
#14,225 0 comments 0 reactions 0 assignees View on GitHub
relates-to: grails-fields
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

See issue defined here: [grails/grails-core/issues/11241](https://github.com/grails/grails-core/issues/11241)
Basically, if your domain object has a BigDecimal with scale of more than 3, the value gets truncated in etc.
I was advised to raise this issue in this project rather than the grails project.
People have indicated a workaround is to implement something in grails-app/views/_fields/bigDecimal/_displayWidget.gsp, but it would be much better if we could fix the actual issue if feasible.

Contributor guide

Open the contributing guide

Research direction

Start with grails-app/views/_fields/bigDecimal/_displayWidget.gsp and compare its behavior with the linked grails-core issue 11241. Reproduce the display of a BigDecimal with scale greater than 3, then verify that the rendered value is no longer truncated.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.