title: Amazon DynamoDB: Storing integers as Numbers vs. Strings
body: <p>I have an application using DynamoDB and I need to be able to store some numbers. At the moment these numbers will only ever be positive integers or occasionally positive numbers with 1 decimal place.</p>
  
  <p>Since DynamoDB has only one Number data type that I assume is somewhat equivalent to a float, is it safe to store integers as Numbers without having to worry about precision causing the returning value to be incorrect (i.e. 1.999999999999 instead of 2)? Or should I save them as strings and parse integers from the strings when I need them. I know that DynamoDB already stores Numbers as strings at some point in the background, but I'm unsure if there is possibility for accuracy loss before that conversion.</p>
  
  <p>As I said, I will only ever be using positive numbers with up to 1 decimal place.</p>