아래 그림과 같이 :
공개 정적 문자열 rethreest (String SS) {부울 결과 = ss.Matches ( "^[-+]? ([[0-9]+) ([.]] ([0-9]+)))? ([.] ([0-9]+))) $"); if (result && ss! = null &&! ". String numstr = new java.text.decimalformat ( "0.000"). 형식 (SSS); Double lsdou = dou.valueof (numstr); ss = string.valueof (lsdou); } 반환 ss; } public static bigdecimal rethreebig (bigdecimal ss) {string numstr = new java.text.decimalformat ( "0.000"). 형식 (ss); bigdecimal newnum = 새로운 bigdecimal (numstr); return newnum;} public static string delezero (string old) {boolean result = old.matches ( "^[-+]? ([[0-9]+) ([0-9]+) ([0-9]+)))? if (result && old! = null &&! "". if (Old.contains ( ". 0")) {Old = Newstr.Substring (0, Old.length () -2); } old old; } else {return old; }}Excel의 데이터 변환 공개 방법 (권장)의 Java POI 분석에 관한 위의 기사는 내가 공유하는 모든 내용입니다. 나는 당신이 당신에게 참조를 줄 수 있기를 바랍니다. 그리고 당신이 wulin.com을 더 지원할 수 있기를 바랍니다.