converting exponential format number to decimal format number

T

Tad McClellan

I'll use it. Thanks!


You're welcome.

You can pay me back by reading the Posting Guidelines that are
posted here frequently.

There was all kinds of thrashing in this thread that did not address
your real problem, because nobody could tell what your real problem
was.

If you had posted the code that got this "number", then it would
have been immediately obvious that it was not a number like it
was said to be...
 
J

John Bokma

Tad McClellan said:
for example
perl -e '$str = '1.2345e+10'; $str =~ s/\.(\d+)e[+](\d+)/ $1 . '0' x
($2 - length $1) /ie; print $str;'
12345000000

which is wrong.

Errr, what would you have the right answer be then?

42, what else? :-D
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top