Package com.luna.common.math
Class MathConvertUtil
java.lang.Object
com.luna.common.math.MathConvertUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
static Boolean
asBooleanObject
(String entryStr) static int
static Integer
static long
static String
static long
doubleConvert2Long
(double entryStr) 转换成精确到2位精度static boolean
isBlank
(CharSequence cs) static double
longConvert2Double
(long entryStr) 这里保留2未精度 入参500,出参5static void
-
Constructor Details
-
MathConvertUtil
public MathConvertUtil()
-
-
Method Details
-
asBoolean
-
asInt
-
asInteger
-
asLong
-
longConvert2Double
public static double longConvert2Double(long entryStr) 这里保留2未精度 入参500,出参5- Parameters:
entryStr
-- Returns:
-
doubleConvert2Long
public static long doubleConvert2Long(double entryStr) 转换成精确到2位精度- Parameters:
entryStr
-- Returns:
-
asBoolean
-
asBooleanObject
-
asString
-
isBlank
-
main
-