You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public BigDecimal getBigDecimal(String fieldName) {
DbfField f = getField(fieldName);
String s = getString(fieldName);
if (s == null || s.trim().length() == 0) {
return null;
} else {
s = s.trim();
}
if (s.contains(NUMERIC_OVERFLOW)) {
return null;
}
int a = f.getNumberOfDecimalPlaces();
if (a==0)
return new BigDecimal(s);
else {
s = s.replace(',', '.');
MathContext mc = new MathContext(a);
return new BigDecimal(s, mc);
}
}
The text was updated successfully, but these errors were encountered:
Enhancement: to parse fractional parts.
my dirty hack is:
The text was updated successfully, but these errors were encountered: