src/org/ohmage/domain/campaign/prompt/BoundedPrompt.java
protected boolean isWholeNumber(final BigDecimal value) {
		try {
			return value.setScale(0, RoundingMode.DOWN).compareTo(value) == 0;
		}
		catch(ArithmeticException e) {
			return false;
		}
	}
/**
	 * Returns whether or not a given value is a whole number.
	 * 
	 * @param value
	 *        The value to check.
	 * 
	 * @return True if the BigDecimal is a whole number; false, otherwise.
	 */
Returns whether or not a given value is a whole number.

@param value
The value to check.

@return True if the BigDecimal is a whole number; false, otherwise.
Returns whether or not a given value is a whole number . @param value The value to check . @return True if the BigDecimal is a whole number ; false otherwise .
protected boolean isWholeNumber(final BigDecimal value) {
		try {
			return value.setScale(0, RoundingMode.DOWN).compareTo(value) == 0;
		}
		catch(ArithmeticException e) {
			return false;
		}
	}
protected boolean isWholeNumber ( final BigDecimal value ) { try { return value . setScale ( 0 , RoundingMode . DOWN ) . compareTo ( value ) == 0 ; } catch ( ArithmeticException e ) { return false ; } }
Returns whether or not a given value is a whole number.
Returns whether or not a given value is a whole number .