@@ -159,6 +159,20 @@ public class FormatUtil {
}
/**
+ * int 缩小100后转string
+ *
+ * @param value
+ * @return
+ */
+ public static String intShrink100ToStr(Long value) {
+ if (value == null) {
+ return "0.00";
+ }
+ DecimalFormat df = new DecimalFormat("0.00");
+ return df.format(new BigDecimal(value).divide(new BigDecimal("100")).doubleValue());
+
+ /**
* string 转 map,仅适用于json格式的string,eg:{"refuseOrderRemark":"this is add remark","company":{"companyName":"中华","address":"北京"},"username":"tom"}
*
* @param data