25
stisch
5y

Found this gem yesterday...

function justNumber(BigDecimal n) {
  string negative_sign = "-";
  BigDecimal response = BigDecimal.valueOf(n.toString().replace(negative_sign, ""));
  return response;
}

Comments
Add Comment