To check if a BigDecimal in Java is negative use the signum() method like it’s shown in the following snippet:
-
public static boolean isNegative(BigDecimal b)
-
{
-
b.signum() == -1;
-
}
To check if a BigDecimal in Java is negative use the signum() method like it’s shown in the following snippet:
Use this link to trackback from your own site.
Thanks, you saved my day…
many many thanks