Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
31 |
Tags
- array
- dart:io
- showDialog
- debug banner
- ListView.build
- c
- Properties.Settings.Default
- flutter button
- debugShowCheckedModeBanner
- flutter
- ubuntu 19 한글 입력
- flutter tcpip server
- Listview filtering
- Server
- TCPIP
- AlertDialog
- flutter tcpip client
- peaks
Archives
- Today
- Total
Louie De Janeiru
Decimal point handling 본문
double doubleValue = 0.12345
Math.Ceiling(doubleValue); // 올림
Math.Round(doubleValue); // 반올림
Math.Truncate(doubleValue); // 버림
Math.Truncate(doubleValue * 10) / 10; // 소수점 첫째 버림
Math.Truncate(doubleValue * 100) / 100; // 소수점 둘째 버림
Math.Truncate(doubleValue * 1000) / 1000; // 소수점 셋째 버림
'C#' 카테고리의 다른 글
Screen Record (0) | 2020.09.16 |
---|---|
Properties.Settings.Default (0) | 2019.09.24 |
DataGridView double buffered enable (0) | 2019.06.12 |
Textbox에 숫자만 입력받기 (0) | 2019.02.11 |
TextBox text null check (0) | 2018.11.13 |