最新文章
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.
精選文章
miui V6更新 還要再等等
miui V6 基於Andorid 4.4
Android 4.3版以上的Android可以完美搭配藍芽4.0低功耗模組。有哪些低功耗的藍芽模組呢?常見的就是智慧手環,還有藍芽音箱、藍芽耳機等等。目前最新的Android是5.0版。
Android 4.4 KitKat版本,是目前大多數旗艦機有的更新支援的,或是一出場就直接是Android 4.4.4 KitKat的版本,新的Android有下面的新功能。
1.全新撥號和智慧來電顯示 2.快速選擇多項功能 3.降低記憶體使用門檻 4.關閉字幕、清除遺失手機資料 5.大聲說「Ok,Google」 6.Hangouts and messaging的整合 7.全螢幕模式 8.支援Emoji表情符號 9.輕鬆開啟雲端文件 10.無線傳輸列印 11.錄製螢幕功能 12.內建計步器 13 行動電子錢包時代 14.全新藍牙與紅外線功能。
從2014年2月,4月就不段的傳出miui 6.0更新的訊息,但是小米科技一直在延後上線時間,一延再延,原本講好2014年12月底前推出相關的更新。
現在呢?還要在等等。
youtube sever crash. Youtube無法正常運作
台灣時間早上6:30左右,我開了Youtube準備來工作,結果Youtube不能開啟,不知道是不是正更新的關係,還是運行異常失敗。
OPNsense pfSense 姐妹產品 再測試
先前玩過pfSense,也有玩過OPNsense,利用這次機會就再測一次OPNsense,先前OPNsense測試的時候,並不是很順,所以,被我用其他的免費路由取代了。
