{"id":8351,"date":"2024-03-22T21:43:45","date_gmt":"2024-03-22T13:43:45","guid":{"rendered":"https:\/\/www.lanyue-tech.com\/?p=8351"},"modified":"2026-01-11T07:28:40","modified_gmt":"2026-01-10T23:28:40","slug":"tdo%e5%8f%82%e6%95%b0%e5%8c%96%e5%b8%b8%e8%a7%81%e6%95%b0%e5%ad%a6%e8%ae%a1%e7%ae%97%e5%ad%97%e7%ac%a6%e8%a1%a8%e8%be%be%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/www.lanyue-tech.com\/ja\/8351.html","title":{"rendered":"SWTDO\u4ea4\u4e92\u53c2\u6570\u5316\u7cfb\u7edf-\u6570\u5b66\u8868\u8fbe\u5f0f"},"content":{"rendered":"

\u539f\u5b50\u8fd0\u7b97\u7b26 (, )
\n\u5355\u76ee\u8fd0\u7b97\u7b26 !, not, -, ~(\u6309\u4f4d\u53d6\u53cd)
\n\u5e42\u6b21\u8fd0\u7b97\u7b26 (\u539f\u6587\u4f5c\u8005\u9057\u6f0f\u4e86\uff0c\u4ed6\u5199\u4e86\u4f4d\u8fd0\u7b97\u7b26 &, |, ^(xor), <<, >> )
\n\u4e58\u9664\u8fd0\u7b97\u7b26 *, \/, %
\n\u52a0\u51cf\u8fd0\u7b97\u7b26 +, -
\n\u5173\u7cfb\u8fd0\u7b97\u7b26 =, ==, !=, <>, <, <=, >, >=
\n\u903b\u8f91\u8fd0\u7b97\u7b26 or,||,and,&&<\/p>\n

\u80fd\u8bb0\u4f4f\u5355\u8bcd\u7684\u8bf7\u6ce8\u610f\uff1a\u4e25\u683c\u9075\u5faa\u9996\u5b57\u6bcd\u5927\u5199<\/strong><\/span><\/p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\u51fd\u6570\u540d<\/th>\n\u63cf\u8ff0<\/th>\n\u7528\u4f8b<\/th>\n\u7528\u4f8b\u7ed3\u679c<\/th>\n<\/tr>\n<\/thead>\n
Abs<\/td>\n\u8fd4\u56de\u7edd\u5bf9\u503c<\/td>\nAbs(-1)<\/td>\n1M<\/td>\n<\/tr>\n
Acos<\/td>\n\u8fd4\u56de\u4f59\u5f26\u503c\u5bf9\u5e94\u7684\u89d2\u5ea6<\/td>\nAcos(1)<\/td>\n0d<\/td>\n<\/tr>\n
Asin<\/td>\n-<\/td>\n-<\/td>\nd<\/td>\n<\/tr>\n
Atan<\/td>\n-<\/td>\n-<\/td>\nd<\/td>\n<\/tr>\n
Ceiling<\/td>\n\u5411\u4e0a\u53d6\u6574<\/td>\nCeiling(1.5)<\/td>\n2d<\/td>\n<\/tr>\n
Cos<\/td>\n-<\/td>\n-<\/td>\nd<\/td>\n<\/tr>\n
Exp<\/td>\n\u76f8\u5f53\u4e8e e \u7684 X \u6b21\u5e42<\/td>\nExp(0)<\/td>\n1d<\/td>\n<\/tr>\n
Floor<\/td>\n\u5411\u4e0b\u53d6\u6574<\/td>\nFloor(1.5)<\/td>\n1d<\/td>\n<\/tr>\n
IEEERemainder<\/td>\nIEEE 754 \u6807\u51c6\u4e0b\u7684\u53d6\u4f59\u64cd\u4f5c\uff0c\u5177\u4f53\u7ec6\u8282\u81ea\u884c\u767e\u5ea6<\/td>\nIEEERemainder(3, 2)<\/td>\n-1d<\/td>\n<\/tr>\n
Log<\/td>\n\u4ee5\u7b2c\u4e8c\u4e2a\u53c2\u6570\u4e3a\u5e95\u53d6\u5bf9\u6570<\/td>\nLog(1,10)<\/td>\n0d<\/td>\n<\/tr>\n
Log10<\/td>\n\u4ee510\u4e3a\u5e95\u53d6\u5bf9\u6570<\/td>\nLog10(1)<\/td>\n0d<\/td>\n<\/tr>\n
Max<\/td>\n-<\/td>\nMax(1,2)<\/td>\n2<\/td>\n<\/tr>\n
Min<\/td>\n-<\/td>\nMin(1,2)<\/td>\n1<\/td>\n<\/tr>\n
Pow<\/td>\n-<\/td>\nPow(3,2)<\/td>\n9d<\/td>\n<\/tr>\n
Round<\/td>\n\u7b2c\u4e8c\u4e2a\u53c2\u6570\u8868\u793a\u4fdd\u7559\u51e0\u4f4d\u5c0f\u6570\uff0cRound \u7684\u820d\u5165\u89c4\u5219\u662f\u201c\u56db\u820d\u516d\u5165\u4e94\u6210\u53cc\u201d\uff0c\u5177\u4f53\u7684\u820d\u5165\u4e2d\u95f4\u503c\u53ef\u4ee5\u5728\u6784\u9020 Expression \u5bf9\u8c61\u65f6\u7528\u00a0EvaluateOption.RoundAwayFromZero<\/code>\u00a0\u8bbe\u5b9a\u3002<\/td>\nRound(3.222,2)<\/td>\n3.22d<\/td>\n<\/tr>\n
Sign<\/td>\n\u53d6\u7b26\u53f7<\/td>\nSign(-10)<\/td>\n-1<\/td>\n<\/tr>\n
Sin<\/td>\n-<\/td>\n-<\/td>\nd<\/td>\n<\/tr>\n
Sqrt<\/td>\n\u53d6\u5e73\u65b9\u6839<\/td>\nSqrt(4)<\/td>\n2d<\/td>\n<\/tr>\n
Tan<\/td>\n-<\/td>\n-<\/td>\nd<\/td>\n<\/tr>\n
Truncate<\/td>\n\u622a\u53d6\u6574\u6570\u90e8\u5206<\/td>\nTruncate(1.7)<\/td>\n1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u6ce8\uff1a\u7ed3\u679c\u4e2d\u7684 M \u4ee3\u8868 Decimal \u7c7b\u578b\uff0cd \u4ee3\u8868 Double \u7c7b\u578b\u3002<\/p>\n

\u5176\u4ed6\u901a\u7528\u51fd\u6570\uff1a<\/p>\n

\n\n\n\n\n\n\n
\u51fd\u6570\u540d<\/th>\n\u63cf\u8ff0<\/th>\n\u7528\u4f8b<\/th>\n\u7ed3\u679c<\/th>\n<\/tr>\n<\/thead>\n
in<\/td>\n\u5224\u65ad\u7b2c\u4e00\u4e2a\u5143\u7d20\u662f\u5426\u5728\u540e\u9762\u7684\u4e00\u7cfb\u5217\u503c\u4e4b\u4e2d<\/td>\nin(1 + 1, 1, 2, 3)<\/td>\ntrue<\/td>\n<\/tr>\n
if<\/td>\n\u7c7b\u4f3c\u4e8e expression ? a:b \u3002\u6839\u636e\u8868\u8fbe\u5f0f\u7ed3\u679c\u5728\u540e\u4e24\u4e2a\u53c2\u6570\u4e2d\u9009\u62e9\u4e00\u4e2a\u8fd4\u56de<\/td>\nif(3 % 2 = 1, 'value is true', 'value is false')<\/td>\n'value is true'<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

\u539f\u5b50\u8fd0\u7b97\u7b26 (, ) \u5355\u76ee\u8fd0\u7b97\u7b26 !, not, -, ~(\u6309\u4f4d\u53d6\u53cd) \u5e42\u6b21\u8fd0\u7b97 …<\/p>\n

SWTDO\u4ea4\u4e92\u53c2\u6570\u5316\u7cfb\u7edf-\u6570\u5b66\u8868\u8fbe\u5f0f<\/span> Read more\u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"categories":[6543,6359,6395,6361],"tags":[6387],"class_list":["post-8351","post","type-post","status-publish","format-standard","hentry","category-helpdoc","category-swtdohelp","category-tdoenterprise","category-parametric-design","tag-6387"],"_links":{"self":[{"href":"https:\/\/www.lanyue-tech.com\/ja\/wp-json\/wp\/v2\/posts\/8351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lanyue-tech.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lanyue-tech.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lanyue-tech.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lanyue-tech.com\/ja\/wp-json\/wp\/v2\/comments?post=8351"}],"version-history":[{"count":0,"href":"https:\/\/www.lanyue-tech.com\/ja\/wp-json\/wp\/v2\/posts\/8351\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lanyue-tech.com\/ja\/wp-json\/wp\/v2\/media?parent=8351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lanyue-tech.com\/ja\/wp-json\/wp\/v2\/categories?post=8351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lanyue-tech.com\/ja\/wp-json\/wp\/v2\/tags?post=8351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}