/**
* Unsed to encode a Not Integer {@link Number}.
*/
public static String encodeAsRealNumber(Object ob) {
if(AmazonSimpleDBUtil.isNaN(ob) || AmazonSimpleDBUtil.isInfinite(ob)) {
throw new MappingException("Could not serialize NaN or Infinity values");
}
BigDecimal realBigDecimal = AmazonSimpleDBUtil.tryToStoreAsRealBigDecimal(ob);
if(realBigDecimal != null) {
return AmazonSimpleDBUtil.encodeRealNumberRange(realBigDecimal, AmazonSimpleDBUtil.LONG_DIGITS,