Amazon SimpleDB
Developer Guide (API Version 2009-04-15)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

Negative Numbers Offsets

When choosing a numerical range, ensure that every number is positive. To do this, choose an offset that is larger than the smallest expected negative number in your data set. For example, if the smallest expected number in your data set is -12,000, choosing offset = 100,000 might be safe.

The following is a sample original data set.

14.58, -12536.791, 20071109, 655378.34, -23

If you apply an offset of 100,000, the following is the resulting data set.

100014.58, 87463.209, 20171109, 755378.34, 99977