[program-java] Re: Java: Exponents

  • From: "Sina Bahram" <sbahram@xxxxxxxxx>
  • To: <program-java@xxxxxxxxxxxxx>
  • Date: Mon, 4 Jul 2011 16:32:32 -0400

Yup, doing all that, web design company, some consulting, and some other things 
as well. keeping busy these days.

 

Take care,

Sina

 

From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James
Sent: Monday, July 04, 2011 4:27 PM
To: 'program-java@xxxxxxxxxxxxx'
Subject: [program-java] Re: Java: Exponents

 

I thought that you were working towards your masters or Ph.D and there was a 
mention of a dissertation?

 

Jim 

 

  _____  

From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Sina Bahram
Sent: July 4, 2011 16:11
To: program-java@xxxxxxxxxxxxx
Subject: [program-java] Re: Java: Exponents

Which one, haha.

 

Take care,

Sina

 

 

From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James
Sent: Monday, July 04, 2011 4:06 PM
To: 'program-java@xxxxxxxxxxxxx'
Subject: [program-java] Re: Java: Exponents

 

Sina:

 

Many thanks indeed. Until this morning I thought that you had left the building 
so to speak. Glad to know that you are still around.
How goes your project?

 

Jim 

 

  _____  

From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Sina Bahram
Sent: July 4, 2011 15:08
To: program-java@xxxxxxxxxxxxx
Subject: [program-java] Re: Java: Exponents

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."

 

 

 

Other related posts: