Skip to content

Commit

Permalink
fix spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
hansva authored and abuchillon committed Oct 1, 2024
1 parent 60e869b commit 5699cb6
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,14 @@ public String getFieldDefinition(
}
} else if (type == IValueMeta.TYPE_BIGNUMBER) {
// Fixed point value...
if (length < 1) { // user configured no value for length. Use 16 digits, which is comparable to mantissa 2^53 of IEEE 754 binary64 "double".
if (length < 1) {
// user configured no value for length. Use 16 digits, which is comparable to
// mantissa 2^53 of IEEE 754 binary64 "double".
length = 16;
}
if (precision < 1) { // user configured no value for precision. Use 16 digits, which is comparable to IEEE 754 binary64 "double".
if (precision < 1) {
// user configured no value for precision. Use 16 digits, which is comparable
// to IEEE 754 binary64 "double".
precision = 16;
}
retval += "DECIMAL(" + length + "," + precision + ")";
Expand Down

0 comments on commit 5699cb6

Please sign in to comment.