티스토리 뷰
http://www.delphibasics.co.uk/RTL.asp?Name=Trunc
Delphi Basics : Trunc command
Description The Trunc function returns the integer part of a floating point number. It returns this part as an Integer value. Notes The Int function does the same, but returns the integer in a floating point value. Related commands Frac The fractional pa
www.delphibasics.co.uk
begin
ShowMessage('Round(12.75) = '+IntToStr(Round(12.75)));
ShowMessage('Trunc(12.75) = '+IntToStr(Trunc(12.75)));
ShowMessage(' Int(12.75) = '+FloatToStr(Int(12.75)));
ShowMessage(' Frac(12.75) = '+FloatToStr(Frac(12.75)));
end;
Round(12.75) = 13
Trunc(12.75) = 12
Int(12.75) = 12
Frac(12.75) = 0.75'VCL' 카테고리의 다른 글
| (i) Trayicon과 VCL Application Event 예제 (0) | 2019.09.06 |
|---|---|
| (URL) Media Player VLC ActiveX Delphi tutorial (0) | 2019.08.29 |
| (i) How to use TnrComm component on delphi (0) | 2019.08.20 |
| (CODE) Playing .WAV files with MediaPlayer. (0) | 2019.07.22 |
| (i) Delphi - FastReport VCL Pro 설치하기 (0) | 2019.07.02 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Could not convert variant of type (Null) into type (OleStr)
- push server
- delphi push message
- READ_PRIVILEGED_PHONE_STATE
- solomonsystem
- Unable to load project
- 앱관리자
- 키오스크
- TT쿼리
- 비에이블
- mysql db 복구
- 식권발매
- RADStudio11
- 비에이블스터디카페
- KSNetPOSLib.ocx
- Firemonkey
- SOLO1ASP
- FMX
- 솔로원DB복제
- 솔로몬시스템
- 스터디카페
- WidevineID
- Android 64
- 안드로이드관리자
- KSNetPOSLib
- .dproj
- DelphiZeroMQ
- Delphi
- Grijjy
- 안드로이드_관리자
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함