Here you can find the source of signum(final BigDecimal value)
Parameter | Description |
---|---|
value | a parameter |
public static int signum(final BigDecimal value)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { /**// w w w . j a va2s .co m * If value is null return 0 otherwise the signum(). * * @param value * @return */ public static int signum(final BigDecimal value) { return value == null ? 0 : value.signum(); } }