最新文章

Delphi函數

數學函數 (Arithmetic Routines)

Unit: System
======================================================================
Abs 傳回參數的絕對值。 function Abs(X);
ArcTan 傳回正切函數的反函數值。 function ArcTan(X: Real): Real;
Cos 傳回餘弦函數值 function Cos(X: Real): Real;
(X 以弧度為單位)。
Exp 傳回自然指數值。 function Cos(X: Real): Real;
Frac 傳回參數的小數部份。 function Frac(X: Real): Real;
Int 傳回參數的整數部份。 function Int(X: Real): Real;
Ln 傳回自然對數值。 function Ln(X: Real): Real;
Pi 傳回圓周率π的值。 function Pi: Real;
Sin 傳回正弦函數值。 function Sin(X: Real): Real;
Sqr 傳回參數的平方。 function Sqr(X: Real): (Real);
Sqrt 傳回參數的平方根。 function Sqrt(X: Real): Real;

Delphi的字串類資料型態&函數

字串類的資料型態
Str1 : Char; // Holds a single character, small alphabet
Str2 : WideChar; // Holds a single character, International alphabet
Str3 : AnsiChar; // Holds a single character, small alphabet
Str4 : ShortString; // Holds a string of up to 255 Char’s
Str5 : String; // Holds strings of Char’s of any size desired
Str6 : AnsiString; // Holds strings of AnsiChar’s any size desired
Str7 : WideString; // Holds strings of WideChar’s of any size desired

Delphi的數字類資料型態&函數

數字類的資料型態

Type Storage size Range

Byte 1 0 to 255
ShortInt 1 -127 to 127
Word 2 0 to 65,535
SmallInt 2 -32,768 to 32,767
LongWord 4 0 to 4,294,967,295
Cardinal 4* 0 to 4,294,967,295
LongInt 4 -2,147,483,648 to 2,147,483,647
Integer 4* -2,147,483,648 to 2,147,483,647
Int64 8 -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

Single 4 7 significant digits, exponent -38 to +38
Currency 8 50+ significant digits, fixed 4 decimal places
Double 8 15 significant digits, exponent -308 to +308
Extended 10 19 significant digits, exponent -4932 to +4932

* Note : the Integer and Cardinal types are both 4 bytes in size at present (Delphi release 7), but are not guaranteed to be this size in the future. All other type sizes are guaranteed.

測試文章

Sorry, no posts were found.


精選文章

關於Google的不為惡政策[Don’t be evil]

嗯~我也不太了Google公司的經營精神就是不為惡,蝸牛一直贊賞這樣的精神,直到最近,蝸牛對於Google的這個精神有一點改觀,也有一點調整。

這個網址是Google企業資訊的中文翻譯網址,第六點,賺錢不為必惡。

Docker-Compose for Guacamole

建立compose.yaml
———
services:
guacamole:
image: flcontainers/guacamole
container_name: guacamole
environment:
TZ: ‘Asia/Taipei’
EXTENSIONS: ‘auth-totp,auth-ldap’
volumes:
– postgres:/config
– /etc/localtime:/etc/localtime:ro
ports:
– 8088:8080
volumes:
postgres:
driver: local
———

WinSCP Install issue

因為有兩個同時FTP的需求,所以本機除了FileZilla之外,打算配上WinSCP,也方便我改Linux上的檔案。

下載最新版,出現 Unable to register the DLL/OCX:RegSvr32 failed with exit code ox5.