Trunc - Free Pascal
Có thể bạn quan tâm
| [Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'System' (#rtl) |
Truncate a floating point value.
Declaration
Source position: mathh.inc line 117
function Trunc( |
d: ValReal |
):Int64; |
Description
Trunc returns the integer part of X, which is always smaller than (or equal to) X in absolute value.
Errors
None.
See also
Frac | Return fractional part of floating point value. |
Int | Calculate integer part of floating point value. |
Round | Round floating point value to nearest integer number. |
Example
Program Example70; { Program to demonstrate the Trunc function. } begin Writeln (Trunc(123.456)); { Prints 123 } Writeln (Trunc(-123.456)); { Prints -123 } Writeln (Trunc(12.3456)); { Prints 12 } Writeln (Trunc(-12.3456)); { Prints -12 } end. Documentation generated on: May 14 2021Từ khóa » Hàm Trunc Trong Pascal
-
TRUNC (Hàm TRUNC) - Microsoft Support
-
Các Hàm Liên Quan đến Kiểu Dữ Liệu Pascal
-
Ham, Thủ Tục Pascal [Archive] - Diễn Đàn Tin Học
-
Cách Sử Dụng Hàm TRUNC Cắt Bỏ Phần Thập Phân Trong Excel
-
Hàm Và Thủ Tục Thông Dụng Trong Pascal - Trường THPT Đoàn Kết
-
Hàm Trunc Trong Pascal
-
Hướng Dẫn Cách Phân Biệt Hàm TRUNC Với Hàm INT Trong Excel
-
Các Hàm Phổ Biến Trong Pascal - Thủ Thuật
-
Pascal - Kiểu Số Thực | Kết Nối - Blog Giáo Dục Và Công Nghệ
-
Thuật Toán Kiểm Tra Số Nguyên Tố - Quê Hương
-
Bài 7: Các Thủ Tục Chuẩn Vào Ra đơn Giản - Hoc24
-
Hàm Hàm TRUNC Trong Oracle - Freetuts