double to long

obj to double spa

obj to long code

instance of blog

Bigdecimalci

    public static void main(String[] args) throws ParseException {
        Object obj1 = 1234;
        Object obj2 = 1234.1;

        BigDecimal a = new BigDecimal(obj2.toString());
        
        System.out.println(a.longValue());
    }
相關文章
相關標籤/搜索