{"id":161,"date":"2008-12-18T20:40:00","date_gmt":"2008-12-18T12:40:00","guid":{"rendered":""},"modified":"2013-11-18T21:45:01","modified_gmt":"2013-11-18T13:45:01","slug":"delphi%e6%95%b0%e5%ad%a6%e8%bf%90%e7%ae%97%e7%9b%b8%e5%85%b3%e5%87%bd%e6%95%b0","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/161.html","title":{"rendered":"Delphi\u6570\u5b66\u8fd0\u7b97\u76f8\u5173\u51fd\u6570"},"content":{"rendered":"<p>Abs(x) \u7edd\u5bf9\u503c<br \/>\nSpr(x) \u5e73\u65b9<br \/>\nSqrt(x) \u5e73\u65b9\u6839<br \/>\nSin(x) \u6b63\u5f26 Cos(x) Cot(x) Tan(x)<br \/>\nArctan(x) \u53cd\u6b63\u5207<br \/>\nExp(x) \u6307\u6570\u8fd4\u56dee\u7684x\u6b21\u65b9<br \/>\nLn(x) \u5bf9\u6570\u8fd4\u56de\u4ee5e\u4e3a\u5e95\u7684\u81ea\u7136\u5bf9\u6570<br \/>\nMax(x,y) Min(x,y) \u8fd4\u56dexy\u4e2d\u6700\u5927\/\u5c0f\u503c<br \/>\nRandom(range) \u8fd4\u56de0~range\u4e4b\u95f4\u7684\u968f\u673a\u6570<br \/>\nFloor(x) \u53d6\u5f97\u5c0f\u4e8e\u7b49\u4e8ex\u7684\u6700\u5927\u6574\u6570\u5982 Floor(-2.8)=-3<br \/>\nInt(x) \u8fd4\u56de\u53c2\u6570\u4e2d\u7684\u6574\u6570\u90e8\u5206\u5982 Int(123.456)=123.0 Int(-123.456)=-123.0<br \/>\nFrac(x)\u00a0\u00a0 \u53d6\u5c0f\u6570\u90e8\u5206<br \/>\nPred(x)\u00a0\u00a0 pred(&#8216;D&#8217;)=&#8217;C&#8217;, pred(true)=1;<br \/>\nSucc(x)\u00a0\u00a0 succ(&#8216;Y&#8217;)=&#8217;Z&#8217;, succ(pred(x))=x<br \/>\nOrd(x)\u00a0\u00a0\u00a0 \u6c42x\u5728\u5b57\u7b26\u96c6\u4e2d\u7684\u5e8f\u53f7,\u5982ord(&#8216;A&#8217;)=65<br \/>\nChr(x)\u00a0\u00a0\u00a0 chr(65)=&#8217;A&#8217;<br \/>\nRound(x) \u56db\u820d\u4e94\u5165<br \/>\nTrunc(x) trunc(4.8)=4,trunc(&#8216;-3.6&#8217;)=-3<br \/>\nUpcase(x) upcase(&#8216;a&#8217;)=&#8217;A&#8217;<br \/>\nHi(I)\u00a0\u00a0\u00a0\u00a0 hi($2A30)=$2A<br \/>\nlo(I)\u00a0\u00a0\u00a0\u00a0 lo($2A30)=$30<br \/>\nSizeof(name) \u6c42\u51fa\u67d0\u7c7b\u578b\u6216\u53d8\u91cf\u5728\u5185\u5b58\u4e2d\u5360\u7528\u7684\u5b57\u8282\u6570<br \/>\nSwap(num) swap($3621)=$2136<br \/>\nDegToRad(const Degrees: Extended): Extended;\u89d2\u5ea6\u5230\u5f27\u5ea6<br \/>\nRadToDeg(const Radians: Extended): Extended;\u5f27\u5ea6\u5230\u89d2\u5ea6<br \/>\nPi\u5e38\u6570\u6d3e<br \/>\nIntPower(const Base: Extended; const Exponent: Integer): Extended register;\u8fd4\u56de\u4efb\u610f\u57fa\u6570Base\u7684Exponent\u6574\u6570\u5e42<br \/>\nPower(const Base, Exponent: Extended): Extended;\u4efb\u610f\u57fa\u6570\u7684\u4efb\u610f\u5e42;\u5bf9\u4e8e\u5206\u6307\u6570\u6216|\u6307\u6570|&gt;MaxInt,\u57fa\u6570\u5fc5\u987b&gt;0<br \/>\nFloatToStr\u53ef\u4ee5\u5c06\u79d1\u5b66\u8bfb\u6570\u6cd5\u548cExtended\u7c7b\u578b\u7684\u6570\u8f6c\u6362\u6210\u5e73\u5e38\u7684\u5c0f\u6570(\u5b57\u7b26\u5f62\u5f0f)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Abs(x) \u7edd\u5bf9\u503c Spr(x) \u5e73\u65b9 Sqrt(x) \u5e73\u65b9\u6839 Sin(x) \u6b63\u5f26 Cos(x) Cot(x [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-161","post","type-post","status-publish","format-standard","hentry","category-code_related"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=161"}],"version-history":[{"count":1,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":4809,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/161\/revisions\/4809"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}