MCPcopy Index your code
hub / github.com/Tencent/APIJSON / getPrice

Method getPrice

APIJSONORM/src/main/java/apijson/StringUtil.java:858–860  ·  view source on GitHub ↗

获取价格,保留两位小数 @param price @return

(String price)

Source from the content-addressed store, hash-verified

856 * @return
857 */
858 public static String getPrice(String price) {
859 return getPrice(price, PRICE_FORMAT_DEFAULT);
860 }
861 //CS304 Issue link: https://github.com/Tencent/APIJSON/issues/182
862 /**获取价格,保留两位小数
863 * @param price -price passed in

Callers

nothing calls this directly

Calls 7

isNotEmptyMethod · 0.95
isNumberMethod · 0.95
iMethod · 0.95
toStringMethod · 0.80
formatMethod · 0.65
lengthMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected