Logo

GitLab

Sign in

platform / common-customization

  • Back to Group
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • common-customization
  • ..
  • util
  • DoubleUtil.java
  • init
    b277533e
    冯海洋 authored
    2018-05-15 10:35:41 +0800  
    Browse File »
DoubleUtil.java 288 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14
package com.lecuntao.ordering.util;

import java.text.DecimalFormat;

/**
 * Created by xn on 15/7/22.
 */
public class DoubleUtil {

    public static Double roundDouble(double d) {
        DecimalFormat df = new DecimalFormat("#.00");
        return (new Double(df.format(d)));
    }
}