{"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 \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 <\/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\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 \n Abs<\/td>\n \u8fd4\u56de\u7edd\u5bf9\u503c<\/td>\n Abs(-1)<\/td>\n 1M<\/td>\n<\/tr>\n \n Acos<\/td>\n \u8fd4\u56de\u4f59\u5f26\u503c\u5bf9\u5e94\u7684\u89d2\u5ea6<\/td>\n Acos(1)<\/td>\n 0d<\/td>\n<\/tr>\n \n Asin<\/td>\n -<\/td>\n -<\/td>\n d<\/td>\n<\/tr>\n \n Atan<\/td>\n -<\/td>\n -<\/td>\n d<\/td>\n<\/tr>\n \n Ceiling<\/td>\n \u5411\u4e0a\u53d6\u6574<\/td>\n Ceiling(1.5)<\/td>\n 2d<\/td>\n<\/tr>\n \n Cos<\/td>\n -<\/td>\n -<\/td>\n d<\/td>\n<\/tr>\n \n Exp<\/td>\n \u76f8\u5f53\u4e8e e \u7684 X \u6b21\u5e42<\/td>\n Exp(0)<\/td>\n 1d<\/td>\n<\/tr>\n \n Floor<\/td>\n \u5411\u4e0b\u53d6\u6574<\/td>\n Floor(1.5)<\/td>\n 1d<\/td>\n<\/tr>\n \n IEEERemainder<\/td>\n IEEE 754 \u6807\u51c6\u4e0b\u7684\u53d6\u4f59\u64cd\u4f5c\uff0c\u5177\u4f53\u7ec6\u8282\u81ea\u884c\u767e\u5ea6<\/td>\n IEEERemainder(3, 2)<\/td>\n -1d<\/td>\n<\/tr>\n \n Log<\/td>\n \u4ee5\u7b2c\u4e8c\u4e2a\u53c2\u6570\u4e3a\u5e95\u53d6\u5bf9\u6570<\/td>\n Log(1,10)<\/td>\n 0d<\/td>\n<\/tr>\n \n Log10<\/td>\n \u4ee510\u4e3a\u5e95\u53d6\u5bf9\u6570<\/td>\n Log10(1)<\/td>\n 0d<\/td>\n<\/tr>\n \n Max<\/td>\n -<\/td>\n Max(1,2)<\/td>\n 2<\/td>\n<\/tr>\n \n Min<\/td>\n -<\/td>\n Min(1,2)<\/td>\n 1<\/td>\n<\/tr>\n \n Pow<\/td>\n -<\/td>\n Pow(3,2)<\/td>\n 9d<\/td>\n<\/tr>\n \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\u00a0 EvaluateOption.RoundAwayFromZero<\/code>\u00a0\u8bbe\u5b9a\u3002<\/td>\nRound(3.222,2)<\/td>\n 3.22d<\/td>\n<\/tr>\n \n Sign<\/td>\n \u53d6\u7b26\u53f7<\/td>\n Sign(-10)<\/td>\n -1<\/td>\n<\/tr>\n \n Sin<\/td>\n -<\/td>\n -<\/td>\n d<\/td>\n<\/tr>\n \n Sqrt<\/td>\n \u53d6\u5e73\u65b9\u6839<\/td>\n Sqrt(4)<\/td>\n 2d<\/td>\n<\/tr>\n \n Tan<\/td>\n -<\/td>\n -<\/td>\n d<\/td>\n<\/tr>\n \n Truncate<\/td>\n \u622a\u53d6\u6574\u6570\u90e8\u5206<\/td>\n Truncate(1.7)<\/td>\n 1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\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 \n in<\/td>\n \u5224\u65ad\u7b2c\u4e00\u4e2a\u5143\u7d20\u662f\u5426\u5728\u540e\u9762\u7684\u4e00\u7cfb\u5217\u503c\u4e4b\u4e2d<\/td>\n in(1 + 1, 1, 2, 3)<\/td>\n true<\/td>\n<\/tr>\n \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>\n if(3 % 2 = 1, 'value is true', 'value is false')<\/td>\n 'value is true'<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n