티스토리 뷰
Delphi
function Trunc(X: Real): Int64;
Properties
Type |
Visibility |
Source |
Unit |
Parent |
function |
public |
System.pas |
Description
Truncates a real number to an integer.
In Delphi code, the Trunc function truncates a real-type value to an integer-type value.
X is a real-type expression.
Trunc returns an Int64 value that is the value of X rounded toward zero.
If the truncated value of X is not within the Int64 range, an EInvalidOp exception is raised.
실수를 정수로 자릅니다.
Delphi 코드에서 Trunc 함수는 실수형 값을 정수형 값으로 자릅니다.
X는 실수형 표현입니다.
Trunc는 X 값을 0으로 반올림 한 Int64 값을 반환합니다.
X의 잘린 값이 Int64 범위 내에 있지 않으면, EInvalidOp 예외가 발생합니다.
Example
var Num: Single; begin Num := 3.14;
// 결과: 3 Writeln(Trunc(Num)); Readln; end. |
truncate 미국식 [|trʌŋkeɪt] (아래나 위를 잘라서) 길이를 줄이다 within 미국·영국 [wɪ|ðɪn] 1. (특정한 기간) 이내에 |
출처: http://docwiki.embarcadero.com/Libraries/XE2/en/System.Trunc
'프로그래밍 언어 > Delphi' 카테고리의 다른 글
[Reference] System.SysUtils.Abort (2) | 2017.04.13 |
---|---|
[Reference] System.SysUtils.DayOfWeek (0) | 2017.04.12 |
[Reference] System.Math.SameValue (0) | 2017.04.10 |
[Reference] System.IOResult (0) | 2017.04.09 |
[Reference] System.GetMem (0) | 2017.04.06 |
- Total
- Today
- Yesterday
- 대상
- SysUtils
- SWT
- Reference
- 자료구조
- 정렬
- 교육센터
- Delphi
- 상황
- 계산기
- Pte
- 응용
- System
- 여행영어 100일의 기적
- wfd
- 스택
- RA
- java
- 독해
- 설명
- VCL
- 알고리즘
- ADODB
- tdataset
- 말하기
- 일기
- 작문
- 영어
- 문법
- 왕초보 영어회화 100일의 기적
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |