Mathematical function

Hi all,

I just want to know if there is one Java function able to return a scientifical representation as a string for big big long ?

For example i give it 100 000 000 an it returns "10 E7".

I need such a function because i am drawing a chart using SWT and label graduation can be very long and can become unreadable. SO i want to shortcut them. Does any one have got an other idea ?

Thanks.

Manu

[433 byte] By [Manu38100a] at [2007-10-3 2:59:21]
# 1

> I just want to know if there is one Java function

> able to return a scientifical representation as a

> string for big big long ?

>

> For example i give it 100 000 000 an it returns "10

> E7".

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

CeciNEstPasUnProgrammeura at 2007-7-14 20:48:56 > top of Java-index,Java Essentials,Java Programming...