일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 비주얼스튜디오
- ASP
- 태그를 입력해 주세요.
- 오라클
- windows
- IIS
- javascript
- 마이크로소프트
- oracle
- microsoft
- 프로시저
- 이클립스
- 단축키
- replace()
- attr()
- 윈폼
- 윈도우
- 자바스크립트
- 리포팅서비스
- jQuery
- MSSQL
- DataGrid
- 엑셀
- SSRS
- MS
- CONVERT()
- c#
- Winform
- aspnet
- Excel
Archives
- Today
- Total
목록3자리 (1)
DJ메탈짱™의 Free Style
C#, 소수점이하 3자리 반올림, TimeSpan, Math.Round
// long type 데이터를 TimeSpan으로 ParsingTimeSpan ts = TimeSpan.FromTicks(long.Parse(sLong));double lFromts = ts.TotalSeconds; // 소수점 이하 4번째 자리 반올림하여 3자리까지 표시.result = Math.Round(lFromts,3,MidpointRounding.AwayFromZero).ToString(); // 결과값이 "0"이 아니면서 5글자 이하면 오른쪽을 0으로 채움if (!result.Equals("0") && result.Length < 5){ result = result.PadRight(5, '0');}
일(job)/MS(Microsoft)
2016. 5. 27. 11:19