Is there any Java library that can help me implement this scenario.
Max number of precision: 3 Max number of decimal scale: 1
e.g. the output should be 33.0, 21.9, 3.4, 100, etc.
The 100 here doesn't have a decimal scale with trailing zero cause it has already exceeded the precision(3).