package test;import java.text.DecimalFormat;public class PrintNum
{
public static final void main( String[] argv )
{
double d = 1.0123456789E20; DecimalFormat df = new DecimalFormat( "#.#" ); System.out.println( "d = " + df.format( d ) );
}
}
{
public static final void main( String[] argv )
{
double d = 1.0123456789E20; DecimalFormat df = new DecimalFormat( "#.#" ); System.out.println( "d = " + df.format( d ) );
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货