title: Java precision issues when getting float from Oracle database - doesn't round correctly
body: <p>I'm running a JSP web app that retrieves a numerical value from an Oracle database and displays it on a webpage. I manually entered the value of 2929.2, and querying the database by hand confirms that it's stored as that value. When I retrieve it through JSP, though, it shows up as 2929.199951172. How can I fix that? I'm using ResultSets and the getDouble() method. It's stored in Oracle as a float, but - and pardon my noobishness - from my understanding that has as much precision as a Java double and getFloat() is not what I'm looking for.</p>
  
  <p>I've skimmed a few articles about BigDecimal, but I'm hesitant to change everything unless I know it's what I need. </p>