<%@ page import="java.text.*"%> double x=32432984032.43;
DecimalFormat df = new DecimalFormat();
String y=df.format(x);得到"32,432,984,032.43 "
DecimalFormat df = new DecimalFormat();
String y=df.format(x);得到"32,432,984,032.43 "
解决方案 »
- spring 中有什么办法能一次提交保存多条数据?
- 在Firefox中执行javascrip时报错了,请教!
- java中继承TimerTask类后run()方法中返回值问题 ?
- 请教此jsp程序中,输入中文姓名和兴趣后,中文乱吗
- 如何在servlet 中获取jsp中select列表框中的所有值?
- 如何备份文本文件?
- 谁有bibernate+struts的例子,如中国移动电子运行维护系统
- 谁有用JSP做系统的源代码,我想参考一下。解决了我给300分!!
- *********真诚急招兼职Java程序员***********
- myeclipse连接mysql新手问题
- 问个简单问题,有关Bean~
- request取出的中文为乱码,但是另外的页面是正常的(tomcat)!救急了!up分赃
package myjsp.api;import java.text.*;
import java.math.*;
import java.util.*;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: BlueFly</p>
* @author kevin
* @version 1.0
*/public class MyNumber {
public MyNumber() {
}
public static void main(String[] args) {
MyNumber myNumber1 = new MyNumber();
String out ;
String in = "123423234";
DecimalFormat df = new DecimalFormat();
df.applyPattern("0.######E0");
out = df.format(35634467.24);
System.out.println(out);
}}
如果不懂的话,再问我