This has the information you need. Just add 13 as the second parameter, as discussed. http://www.javaprogrammingforums.com/java-programming-tutorials/297-how-format-double-value-2-decimal-places.html take care, Sina From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Willem Sent: Monday, July 04, 2011 1:34 PM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: Java: Exponents Jim, as far as I know the conversion happens automatically if there will be a loss of precision. I couldn't find a method in the java api to convert back, but I'm sure you can write one with little effort or avoid this happening by using trunkation. On 7/4/2011 5:42 PM, Corbett, James wrote: Hi: I have a data entry screen that accepts dollar values and the limit is set to 13 digits that include the decimal and trailing cents to two places. However after formating the value on a lost focus event, particular entries are displayed as an exponent. What's going on here and how should I address it? Jim James M. Corbett Programmer / Analyst | Canada Revenue Agency | Agence du revenue du Canada 875 Heron Rd. Ottawa, On. K1A0L5 James.Corbett@xxxxxxxxxxxxx Telephone | Téléphone: (613) 941-1338 Facsimile | Télécopieur: (613) 941-2261 Government of Canada | Gouvernement du Canada "Due to the highly confidential nature of my job, I'm not allowed to know what I'm doing."