Output format?

Hi everyone in the forum,

I do not know if i should post this question here, but i think is the best place. Sorry if i were wrong.

just a question because i have no idea how to format the output i need.

I have a REAL *8 and the output restrictions shows that it should be:

1.0000 D-08 if the value is less than 1

1.0000 if the value is [1,9]

1.0000 D+03 is value bigger than 9

and the other problem is whith other variable (type String) which represents integers, e.g, 0.000000 1.0000000 2.000000; and i have to return only 0 1 2 .

Any suggestion about how to format the output?

Thanks

[649 byte] By [patucosa] at [2007-10-2 17:58:02]
# 1
Continued here: http://forum.java.sun.com/thread.jspa?threadID=728683
prometheuzza at 2007-7-13 19:16:53 > top of Java-index,Other Topics,Algorithms...