exponent E

R

Riri

Hello, i must check if the double i get has an exponent E, for instance
2.779789878 E7, how can i test it and get rid of it?

Thanks
 
A

Andrew Thompson

Riri said:
Hello, i must check if the double i get has an exponent E, for instance
2.779789878 E7, how can i test it and get rid of it?

I don't quite understand your question Riri.

When you print the String, does it show the 'E'?
You can search for the 'E' using i.toString().indexOf("E"),
but that depends on getting a string form of the value.

Could you explain further or (..historic
moment here) submit an SSCCE?
http://www.physci.org/codes/sscce.jsp
 
A

Andrew Thompson

Andrew Thompson said:
I don't quite understand your question Riri.

Please do not multi-post Riri.

Since Chris seems to be giving you some
good help over at c.l.j.h, it is probably
best you restrict replies to just that thread.
 
H

hiwa

Riri said:
Hello, i must check if the double i get has an exponent E, for instance
2.779789878 E7, how can i test it and get rid of it?

Thanks
DecimalFormat. Testing would be unnecessary.
 
G

Gregory A. Swarthout

Andrew Thompson said:
Please do not multi-post Riri.

Riri, you have been duly warned by the self-appointed Usenet Nazi. Proceed at
your own peril. Failure to heed this warning will result in no action whatsoever.

Greg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top