79819561

Date: 2025-11-14 01:01:09
Score: 1
Natty:
Report link
public static int dollarsToCents(BigDecimal dollars) {
    return dollars.multiply(new BigDecimal("100"))
                  .setScale(0, RoundingMode.HALF_UP)
                  .intValue();
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sajith Saju