java roundup
java-numeric format
DecimalFormat formatter = new DecimalFormat("#0.00");
double d = 4.0;
System.out.println(formatter.format(d));
import java.text.*;
DecimalFormat currencyFormat = new DecimalFormat("#0.00");
poTotalAmount=(String) currencyFormat.format(rs.getDouble(15));
沒有留言:
張貼留言