Engeneering notation using decimalformat and _?

im attemping to show numbers in engennering notation insted of scientific notation.

im attemting to use the decimalformat command to convert doubles into strings then inst engennering format but no avail.

basically i have no idea how to compleate this cycle and get engenering notation.

any advice would be verry helpfull even an exaple of using decimal format commands.

thanks

[408 byte] By [nick_chompaa] at [2007-11-27 5:35:14]
# 1

The minimum and maximum number of integer digits are interpreted together:

* If the maximum number of integer digits is greater than their minimum number and greater than 1, it forces the exponent to be a multiple of the maximum number of integer digits, and the minimum number of integer digits to be interpreted as 1. The most common use of this is to generate engineering notation, in which the exponent is a multiple of three, e.g., "##0.#####E0". Using this pattern, the number 12345 formats to "12.345E3", and 123456 formats to "123.456E3".

http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html

pm_kirkhama at 2007-7-12 15:04:06 > top of Java-index,Java Essentials,Java Programming...
# 2
im not trying to use engeneering notation with just decimal format becaus i want the number so how with full engeneering notation eg. "12,000 = 12k" insted of "12 e3"
nick_chompaa at 2007-7-12 15:04:06 > top of Java-index,Java Essentials,Java Programming...