Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
-
bd44b943
by Tony Chemit at 2023-03-09T19:06:54+01:00
-
6590eb16
by Tony Chemit at 2023-03-09T19:07:00+01:00
2 changed files:
- core/api/dto-validation/src/main/java/fr/ird/observe/dto/validation/validators/AbstractSpeciesFieldDtoValidator.java
- toolkit/api/src/main/java/fr/ird/observe/dto/I18nDecoratorHelper.java
Changes:
| ... | ... | @@ -193,11 +193,11 @@ public abstract class AbstractSpeciesFieldDtoValidator extends FieldValidatorSup |
| 193 | 193 | }
|
| 194 | 194 | |
| 195 | 195 | public Float getMin() {
|
| 196 | - return computedBound == null ? null : Numbers.roundThreeDigits(computedBound.getMin());
|
|
| 196 | + return computedBound == null ? null : Numbers.roundFourDigits(computedBound.getMin());
|
|
| 197 | 197 | }
|
| 198 | 198 | |
| 199 | 199 | public Float getMax() {
|
| 200 | - return computedBound == null ? null : Numbers.roundThreeDigits(computedBound.getMax());
|
|
| 200 | + return computedBound == null ? null : Numbers.roundFourDigits(computedBound.getMax());
|
|
| 201 | 201 | }
|
| 202 | 202 | |
| 203 | 203 | private Boolean getValidationLengthWeightEnable(Object object) throws ValidationException {
|
| ... | ... | @@ -185,7 +185,7 @@ public abstract class I18nDecoratorHelper extends BeanPropertyI18nKeyProducerPro |
| 185 | 185 | |
| 186 | 186 | public static String fillCoordinateComponent(int integerPartDigit, Float component) {
|
| 187 | 187 | boolean withSign = component < 0;
|
| 188 | - String round = String.valueOf(Numbers.roundThreeDigits(component));
|
|
| 188 | + String round = String.valueOf(Numbers.roundFourDigits(component));
|
|
| 189 | 189 | int index = round.indexOf(".");
|
| 190 | 190 | return (withSign ? "-" : " ")
|
| 191 | 191 | + Strings.leftPad(round.substring(0, index).replace("-", ""), integerPartDigit, "0")
|