{"id":60025,"date":"2026-01-14T21:17:21","date_gmt":"2026-01-14T13:17:21","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/60025.html"},"modified":"2026-01-14T21:17:21","modified_gmt":"2026-01-14T13:17:21","slug":"c%e5%9f%ba%e7%a1%80%e5%b7%a5%e5%85%b7%e6%a8%a1%e5%9d%97%ef%bc%9amath%e9%9d%99%e6%80%81%e7%b1%bb%e3%80%81%e6%97%a5%e6%9c%9f%e7%9b%b8%e5%85%b3%e5%8a%9f%e8%83%bd%e6%a2%b3%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/60025.html","title":{"rendered":"C#\u57fa\u7840\u5de5\u5177\u6a21\u5757\uff1aMath\u9759\u6001\u7c7b\u3001\u65e5\u671f\u76f8\u5173\u529f\u80fd\u68b3\u7406"},"content":{"rendered":"<p>Math\u7c7b\u63d0\u4f9b\u5e38\u7528\u6570\u5b66\u8fd0\u7b97\u65b9\u6cd5&#xff0c;\u5305\u62ec\u53d6\u6574&#xff08;Floor\/Ceiling\/Round&#xff09;\u3001\u7edd\u5bf9\u503c&#xff08;Abs&#xff09;\u3001\u6700\u5927\u6700\u5c0f\u503c&#xff08;Max\/Min&#xff09;\u3001\u5f00\u65b9&#xff08;Sqrt&#xff09;\u3001\u5e42\u8fd0\u7b97&#xff08;Pow&#xff09;\u3001\u4e09\u89d2\u51fd\u6570&#xff08;Sin\/Cos\/Tan&#xff09;\u548c\u5bf9\u6570\u8fd0\u7b97&#xff08;Log\/Log10&#xff09;\u3002DateTime\u7c7b\u7528\u4e8e\u65e5\u671f\u65f6\u95f4\u64cd\u4f5c&#xff0c;\u652f\u6301\u83b7\u53d6\u5f53\u524d\u65f6\u95f4&#xff08;Now&#xff09;\u3001\u683c\u5f0f\u5316\u8f93\u51fa&#xff08;ToString&#xff09;\u3001\u65f6\u95f4\u6233\u8f6c\u6362&#xff08;ToUnixTimeSeconds&#xff09;\u548c\u65f6\u95f4\u8ba1\u7b97&#xff08;AddYears\u7b49&#xff09;\u3002TimeSpan\u53ef\u7528\u4e8e\u8ba1\u7b97\u65f6\u95f4\u95f4\u9694&#xff0c;\u5305\u542bDays\u548cTotalSeconds\u7b49\u5c5e\u6027\u3002\u6587\u7ae0\u8fd8\u4ecb\u7ecd\u4e86\u6570\u503c\u7c7b\u578b\u7684\u6781\u9650\u503c&#xff08;\u5982int.MaxValue&#xff09;\u548c\u65e5\u671f\u89e3\u6790\u65b9\u6cd5\u3002<\/p>\n<h2>Math\u9759\u6001\u7c7b<\/h2>\n<p>Math \u63d0\u4f9b\u4e00\u4e9b\u5173\u4e8e\u6570\u5b66\u8fd0\u7b97\u7684\u65b9\u6cd5<\/p>\n<p>Math.PI\u00a0\u5706\u5468\u7387<\/p>\n<p>Math.Floor(2.9);\u5411\u4e0b\u53d6\u6574<\/p>\n<p>Math.Ceiling(3.1); \u5411\u4e0a\u53d6\u6574<\/p>\n<p>Math.Round()\u00a0 \u6240\u8c13\u94f6\u884c\u5bb6\u820d\u5165\u6cd5&#xff0c;\u5176\u5b9e\u8d28\u662f\u4e00\u79cd\u56db\u820d\u516d\u5165\u4e94\u53d6\u5076(\u53c8\u79f0\u56db\u820d\u516d\u5165\u4e94\u7559\u53cc)\u6cd5\u3002\u5176\u89c4\u5219\u662f:\u5f53\u820d\u53bb\u4f4d\u7684\u6570\u503c\u5c0f\u4e8e5\u65f6&#xff0c;\u76f4\u63a5\u820d\u53bb\u8be5\u4f4d;\u5f53\u820d\u53bb\u4f4d\u7684\u6570\u503c\u5927\u4e8e\u7b49\u4e8e6\u65f6&#xff0c;\u5728\u820d\u53bb\u8be5\u4f4d\u7684\u540c\u65f6\u5411\u524d\u4f4d\u8fdb\u4e00;\u5f53\u820d\u53bb\u4f4d\u7684\u6570\u503c\u7b49\u4e8e5\u65f6&#xff0c;\u5982\u679c\u524d\u4f4d\u6570\u503c\u4e3a\u5947&#xff0c;\u5219\u5728\u820d\u53bb\u8be5\u4f4d\u7684\u540c\u65f6\u5411\u524d\u4f4d\u8fdb\u4e00&#xff0c;\u5982\u679c\u524d\u4f4d\u6570\u503c\u4e3a\u5076, \u5219\u76f4\u63a5\u820d\u53bb\u8be5\u4f4d\u3002<\/p>\n<p>Math.Abs(-1); \u00a0\u7edd\u5bf9\u503c<\/p>\n<p>Math.Max(\u53c2\u6570\u4e00,\u53c2\u6570\u4e8c);\u6c42\u4fe9\u4e2a\u6570\u7684 \u6700\u5927\u503c<\/p>\n<p>Math.Min(\u53c2\u6570\u4e00,\u53c2\u6570\u4e8c); \u6c42\u4fe9\u4e2a\u6570\u7684 \u6700\u5c0f\u503c<\/p>\n<p>Math.Sqrt(9);\u00a0 \u5f00\u65b9\u8fd0\u7b97 &#xff0c;\u8fd4\u56de\u503c\u662f\u6307\u5b9a\u6570\u5b57\u7684\u5e73\u65b9\u6839<\/p>\n<p>Math.Pow(\u53c2\u6570\u4e00&#xff0c;\u53c2\u6570\u4e8c)); \u7528\u4e8e\u8ba1\u7b97\u7b2c\u4e00\u4e2a\u53c2\u6570&#xff08;\u5e95\u6570&#xff09;\u7684\u7b2c\u4e8c\u4e2a\u53c2\u6570&#xff08;\u6307\u6570&#xff09;\u6b21\u65b9&#xff0c;\u8fd4\u56de\u503c\u662fdouble \u7c7b\u578b<\/p>\n<p>Math.Sin()\u6b63\u5f26\u3001Math.Cos()\u4f59\u5f26\u3001Math.Tan ()\u6b63\u5207\u65b9\u6cd5\u4ec5\u63a5\u53d7\u5f27\u5ea6&#xff08;Math.PI&#xff09;\u4f5c\u4e3a\u53c2\u6570<\/p>\n<p>Math.Log10()\u00a0 \u8fd4\u56de\u6307\u5b9a\u6570\u5b57\u4ee510\u4e3a\u5e95\u7684\u5bf9\u6570\u662f\u591a\u5c11 \u4f8b\u5982Math.Log10(100); \u8fd4\u56de\u503c\u662f 2\u00a0 \u00a010\u7684\u591a\u5c11\u6b21\u65b9\u7b49\u4e8e100\u00a0<\/p>\n<p>Math.Log(10)\u8fd4\u56de\u6307\u5b9a\u6570\u5b57\u4ee5e\u4e3a\u5e95\u7684\u5bf9\u6570\u662f\u591a\u5c11<\/p>\n<p>Math.BigMul(,)\u8fd4\u56de\u4e24\u4e2a\u6570\u7684\u4e58\u79ef<\/p>\n<h3>\u5173\u4e8e\u6570\u636e\u7c7b\u578b\u7684API\u548c\u5c5e\u6027<\/h3>\n<p>double.NegativeInfinity\u00a0 \u00a0\u8d1f\u65e0\u7a77\u5927&#xff08;Negative\u6d88\u6781 &#xff09;<\/p>\n<p>double.PositiveInfinity\u00a0 \u6b63\u65e0\u7a77\u5927<\/p>\n<p>int.MaxValue\u00a0\u00a0int\u7c7b\u578b\u6700\u5927\u503c 2147483647 \u6574\u578b\u7684\u6700\u5927\u503c<\/p>\n<p>int.MinValue\u00a0 \u00a0 \u00a0int\u7c7b\u578b\u6700\u5c0f\u503c -2147483648 \u6574\u578b\u7684\u6700\u5c0f\u503c<br \/>\ndecimal.MaxValue\u00a0 \u00a0 \u5341\u8fdb\u5236\u6570\u6700\u5927\u503c\u00a0<br \/>\nsbyte.MaxValue\u00a0 \u00a0 \u00a0 \u6709\u7b26\u53f7\u5b57\u8282\u7c7b\u578b\u6700\u5927\u503c\u00a0127<\/p>\n<\/p>\n<h2>\u65e5\u671f\u5bf9\u8c61<\/h2>\n<p>DateTime \u65e5\u671f\u7684\u7c7b&#xff0c;\u63d0\u4f9b\u4e00\u4e9b\u83b7\u53d6\u5f53\u524d\u65f6\u95f4\u3001\u65f6\u95f4\u683c\u5f0f\u5316\u3001\u8ba1\u7b97\u65f6\u95f4\u6233\u7b49\u529f\u80fd<\/p>\n<p>DateTime time &#061; DateTime.Now; \u83b7\u53d6\u5f53\u524d\u8fd0\u884c\u4ee3\u7801\u7684\u8ba1\u7b97\u673a&#xff08;\u672c\u5730\u673a\u5668&#xff09;\u7684\u7cfb\u7edf\u65e5\u671f\u548c\u65f6\u95f4&#xff08;\u5305\u542b\u5e74\u6708\u65e5\u65f6\u5206\u79d2\u6beb\u79d2&#xff09;&#xff0c;\u5e76\u5c06\u8fd9\u4e2a\u65f6\u95f4\u503c\u8d4b\u503c\u7ed9\u540d\u4e3a time \u7684 DateTime \u7c7b\u578b\u53d8\u91cf\u3002<\/p>\n<p>  DateTime time &#061; DateTime.Now;<\/p>\n<p>  \/\/\u53ef\u4ee5\u65f6\u95f4\u5bf9\u8c61\u8f6c\u6210\u5b57\u7b26\u4e32\u8fdb\u884c\u6253\u5370<br \/>\n  Console.WriteLine(time.ToString());\/\/2025\/12\/5 14:06:52<br \/>\n  Console.WriteLine(time.Year); \/\/ \u83b7\u53d6\u5f53\u524d\u5e74<br \/>\n  Console.WriteLine(time.Month);\/\/\u83b7\u53d6\u5f53\u524d\u6708<br \/>\n  Console.WriteLine(time.Day); \/\/\u83b7\u53d6\u5f53\u524d\u65e5<br \/>\n  Console.WriteLine(time.Hour);\/\/\u83b7\u53d6\u5f53\u524d\u5c0f\u65f6<br \/>\n  Console.WriteLine(time.Minute);\/\/\u83b7\u53d6\u5f53\u524d\u5206\u949f<br \/>\n  Console.WriteLine(time.Second);\/\/\u83b7\u53d6\u5f53\u524d\u79d2<br \/>\n  Console.WriteLine(time.Millisecond);\/\/\u83b7\u53d6\u5f53\u524d\u6beb\u79d2<br \/>\n  Console.WriteLine(time.DayOfWeek); \/\/ \u5f53\u524d\u7684\u661f\u671f<\/p>\n<p>  \/\/\u6839\u636e\u4e00\u4e9b\u7279\u6b8a\u7684\u7b26\u53f7\u83b7\u53d6\u5bf9\u5e94\u65f6\u95f4<br \/>\n  Console.WriteLine(time.ToString(&#034;yy&#034;));\/\/\u5e74\u7684\u540e\u4e24\u4f4d<br \/>\n  Console.WriteLine(time.ToString(&#034;yyyy&#034;));\/\/2025<br \/>\n  Console.WriteLine(time.ToString(&#034;MM&#034;)); \/\/\u5f53\u524d\u6708\u4efd12 \u8868\u793a\u5982\u679c6 \u6253\u537006<br \/>\n  Console.WriteLine(time.ToString(&#034;MMM&#034;));\/\/12\u6708 \u64cd\u4f5c\u7cfb\u7edf\u662fwin11\u662f12\u6708&#xff0c;\u4f4e\u7248\u672c\u7cfb\u7edf\u662f\u5341\u4e8c\u6708<br \/>\n  Console.WriteLine(time.ToString(&#034;MMMM&#034;));\/\/\u5341\u4e8c\u6708<br \/>\n  Console.WriteLine(time.ToString(&#034;dd&#034;)); \/\/ \u67d0\u6708\u7684\u7b2c\u51e0\u5929 05<br \/>\n  Console.WriteLine(time.ToString(&#034;ddd&#034;)); \/\/\u5468\u4e94<br \/>\n  Console.WriteLine(time.ToString(&#034;dddd&#034;));\/\/\u661f\u671f\u4e94<br \/>\n  Console.WriteLine(time.ToString(&#034;hh&#034;)); \/\/12\u5c0f\u65f6\u5236 02<br \/>\n  Console.WriteLine(time.ToString(&#034;HH&#034;)); \/\/24\u5c0f\u65f6\u5236 12<br \/>\n  Console.WriteLine(time.ToString(&#034;mm&#034;));\/\/\u5206\u949f 28<br \/>\n  Console.WriteLine(time.ToString(&#034;ss&#034;));\/\/\u79d2<br \/>\n  Console.WriteLine(time.ToString(&#034;fff&#034;));\/\/\u6beb\u79d2\u6570<\/p>\n<h4>\u65f6\u95f4\u6233<\/h4>\n<p>DateTimeOffset dateTimeOffset &#061;new DateTimeOffset(DateTime.Now);\u65f6\u95f4\u6233\u5bf9\u8c61 \u83b7\u53d6\u8ddd\u79bb\u5f53\u524d\u65f6\u95f4\u7684\u65f6\u95f4\u6233\u5bf9\u8c61<\/p>\n<p>\/\/new DateTimeOffset(time);\u65f6\u95f4\u6233\u5bf9\u8c61 \u83b7\u53d6\u8ddd\u79bb\u5f53\u524d\u65f6\u95f4\u7684\u65f6\u95f4\u6233\u5bf9\u8c61<br \/>\nDateTimeOffset dateTimeOffset &#061; new DateTimeOffset(time);<br \/>\nConsole.WriteLine(dateTimeOffset.ToUnixTimeMilliseconds()&#043;&#034;&#034;);   \/\/\u4ece1970\u5e74\u5230\u76ee\u524d\u4e4b\u524d\u7684\u6beb\u79d2\u6570<br \/>\nConsole.WriteLine(dateTimeOffset.ToUnixTimeSeconds() &#043;&#034;&#034;);\/\/\u4ece1970\u5e74\u5230\u76ee\u524d\u4e4b\u524d\u7684\u79d2\u6570<\/p>\n<p>\/\/\u6307\u5b9a\u65f6\u95f4\u521b\u5efa\u65f6\u95f4\u5bf9\u8c61<br \/>\nDateTime birthDate &#061; new DateTime(2025, 05, 27, 14, 20, 40);<br \/>\nConsole.WriteLine(birthDate.ToString());<br \/>\nDateTimeOffset off1 &#061; new DateTimeOffset(birthDate);\/\/\u83b7\u53d6\u51fa\u751f\u7684\u65f6\u95f4\u6233);<br \/>\nDateTimeOffset off2&#061;new DateTimeOffset(DateTime.Now);\/\/\u83b7\u53d6\u5f53\u524d\u65f6\u95f4\u6233<\/p>\n<p>Console.WriteLine(off2.ToUnixTimeSeconds() &#8211; off1.ToUnixTimeSeconds());\/\/16590804<\/p>\n<p>\/\/\u4e5f\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b\u5b57\u7b26  \u5feb\u901f\u683c\u5f0f\u5316\u65e5\u671f\u5b57\u7b26\u4e32<br \/>\nConsole.WriteLine(time.ToString(&#034;G&#034;));\/\/2025\/12\/5 14:56:23<br \/>\nConsole.WriteLine(time.ToString(&#034;F&#034;));\/\/2025\u5e7412\u67085\u65e5 14:56:23<br \/>\nConsole.WriteLine(time.ToString(&#034;D&#034;));\/\/2025\u5e7412\u67085\u65e5<\/p>\n<p>Console.WriteLine(time.DayOfYear); \/\/\u83b7\u53d6\u4eca\u5e74\u8fc7\u4e86\u51e0\u5929   339<br \/>\nConsole.WriteLine((int)time.DayOfWeek); \/\/\u679a\u4e3e\u7c7b\u578b\u53ef\u4ee5\u8fdb\u884c\u5f3a\u5236\u8f6c\u6210\u6574\u578b\u7684 5   0\u4ee3\u8868\u5468\u65e5<br \/>\nConsole.WriteLine(time.ToString(&#034;\u4eca\u5e74&#xff1a;yyyy\u5e74&#034;));<\/p>\n<p>\/\/ \u89e3\u6790\u7f8e\u5f0f\u65e5\u671f&#xff08;MM\/dd\/yyyy&#xff09;<br \/>\nstring usDateStr &#061; &#034;12\/19\/2025&#034;;<br \/>\nDateTime usDate &#061; DateTime.Parse(usDateStr, new CultureInfo(&#034;en-US&#034;));<br \/>\nConsole.WriteLine(usDate); \/\/ \u8f93\u51fa&#xff1a;2025\/12\/19 0:00:00<\/p>\n<p>\/\/ \u89e3\u6790\u4e2d\u6587\u683c\u5f0f\u65e5\u671f<br \/>\nstring cnDateStr &#061; &#034;2025\u5e7412\u670819\u65e5&#034;;<br \/>\nDateTime cnDate &#061; DateTime.Parse(cnDateStr, new CultureInfo(&#034;zh-CN&#034;));<br \/>\nConsole.WriteLine(cnDate); \/\/ \u8f93\u51fa&#xff1a;2025\/12\/19 0:00:00 <\/p>\n<h4>\u65e5\u671f\u8ba1\u7b97\u65b9\u6cd5<\/h4>\n<p>DateTime time &#061; DateTime.Now; \/\/\u83b7\u5f97\u5f53\u524d\u65f6\u95f4<br \/>\ntime &#061; time.AddYears(1); \/\/ \u5e74\u4efd\u52a0\u4e00<br \/>\ntime &#061; time.AddMonths(1);\/\/\u6708\u4efd\u52a0\u4e00<br \/>\ntime &#061; time.AddDays(1);\/\/\u5929\u6570\u4e00<br \/>\ntime &#061; time.AddHours(1);\/\/\u5c0f\u65f6\u52a0\u4e00<br \/>\ntime &#061; time.AddMinutes(1);\/\/\u5206\u949f \u52a0\u4e00<br \/>\ntime &#061; time.AddSeconds(1);\/\/\u79d2 \u52a0\u4e00<br \/>\ntime &#061; time.AddMilliseconds(1);\/\/\u6beb\u79d2 \u52a0\u4e00<\/p>\n<p>Console.WriteLine(time.ToString());\/\/ \u5c06\u65f6\u95f4\u7c7b\u578b&#xff08;DateTime&#xff09;\u8f6c\u6362\u4e3a \u5b57\u7b26\u4e32<br \/>\ntime &#061; DateTime.Now.AddYears(-10); \/\/ \u5e74\u4efd&#043;&#xff08;-10&#xff09; \u4e5f\u5c31\u662f10\u5e74\u524d<br \/>\nConsole.WriteLine(time.ToString());\/\/<\/p>\n<p>if (DateTime.Now &lt; new DateTime(2026, 1, 1)) \/\/\u5f53\u524d\u65f6\u95f4\u4e0e2026\u5e741\u67081\u65e5\u8fdb\u884c\u6bd4\u8f83<br \/>\n{<br \/>\n    Console.WriteLine(&#034;2026\u4e4b\u524d&#034;);<\/p>\n<p>}<br \/>\nelse<br \/>\n{<br \/>\n    Console.WriteLine(&#034;2026\u4e4b\u540e&#034;);<br \/>\n}<br \/>\n\/\/ \u83b7\u53d6\u8ddd\u79bb\u65f6\u95f4\u70b9\u8fd8\u6709\u591a\u957f\u65f6\u95f4\/\/<br \/>\n\/\/TimeSpan \u65f6\u95f4\u6807\u7b7e \u65f6\u95f4\u6233<br \/>\nTimeSpan span &#061; new DateTime(2026, 1, 1) &#8211; DateTime.Now;<br \/>\nConsole.WriteLine(span.Days); \/\/\u65f6\u95f4\u70b9\u76f8\u5dee\u5929\u6570<br \/>\nConsole.WriteLine(span.TotalSeconds); \/\/\u603b\u79d2\u6570<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Math\u7c7b\u63d0\u4f9b\u5e38\u7528\u6570\u5b66\u8fd0\u7b97\u65b9\u6cd5&#xff0c;\u5305\u62ec\u53d6\u6574&#xff08;Floor\/Ceiling\/Round&#xff09;\u3001\u7edd\u5bf9\u503c&#xff08;Abs&#xff09;\u3001\u6700\u5927\u6700\u5c0f\u503c&#xff08;Max\/Min&#xff09;\u3001\u5f00\u65b9&#xff08;Sqrt&#xff09;\u3001\u5e42\u8fd0\u7b97&#xff08;Pow&#xff09;\u3001\u4e09\u89d2\u51fd\u6570&#xff08;Sin\/Cos\/Tan&#xff09;\u548c\u5bf9\u6570\u8fd0\u7b97&#xff08;Log\/Log10&#xff09;\u3002DateTime\u7c7b\u7528\u4e8e\u65e5\u671f\u65f6\u95f4\u64cd\u4f5c<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55],"topic":[],"class_list":["post-60025","post","type-post","status-publish","format-standard","hentry","category-server","tag-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C#\u57fa\u7840\u5de5\u5177\u6a21\u5757\uff1aMath\u9759\u6001\u7c7b\u3001\u65e5\u671f\u76f8\u5173\u529f\u80fd\u68b3\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/60025.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C#\u57fa\u7840\u5de5\u5177\u6a21\u5757\uff1aMath\u9759\u6001\u7c7b\u3001\u65e5\u671f\u76f8\u5173\u529f\u80fd\u68b3\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Math\u7c7b\u63d0\u4f9b\u5e38\u7528\u6570\u5b66\u8fd0\u7b97\u65b9\u6cd5&#xff0c;\u5305\u62ec\u53d6\u6574&#xff08;Floor\/Ceiling\/Round&#xff09;\u3001\u7edd\u5bf9\u503c&#xff08;Abs&#xff09;\u3001\u6700\u5927\u6700\u5c0f\u503c&#xff08;Max\/Min&#xff09;\u3001\u5f00\u65b9&#xff08;Sqrt&#xff09;\u3001\u5e42\u8fd0\u7b97&#xff08;Pow&#xff09;\u3001\u4e09\u89d2\u51fd\u6570&#xff08;Sin\/Cos\/Tan&#xff09;\u548c\u5bf9\u6570\u8fd0\u7b97&#xff08;Log\/Log10&#xff09;\u3002DateTime\u7c7b\u7528\u4e8e\u65e5\u671f\u65f6\u95f4\u64cd\u4f5c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/60025.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-14T13:17:21+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/60025.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/60025.html\",\"name\":\"C#\u57fa\u7840\u5de5\u5177\u6a21\u5757\uff1aMath\u9759\u6001\u7c7b\u3001\u65e5\u671f\u76f8\u5173\u529f\u80fd\u68b3\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-14T13:17:21+00:00\",\"dateModified\":\"2026-01-14T13:17:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/60025.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/60025.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/60025.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C#\u57fa\u7840\u5de5\u5177\u6a21\u5757\uff1aMath\u9759\u6001\u7c7b\u3001\u65e5\u671f\u76f8\u5173\u529f\u80fd\u68b3\u7406\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C#\u57fa\u7840\u5de5\u5177\u6a21\u5757\uff1aMath\u9759\u6001\u7c7b\u3001\u65e5\u671f\u76f8\u5173\u529f\u80fd\u68b3\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/60025.html","og_locale":"zh_CN","og_type":"article","og_title":"C#\u57fa\u7840\u5de5\u5177\u6a21\u5757\uff1aMath\u9759\u6001\u7c7b\u3001\u65e5\u671f\u76f8\u5173\u529f\u80fd\u68b3\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Math\u7c7b\u63d0\u4f9b\u5e38\u7528\u6570\u5b66\u8fd0\u7b97\u65b9\u6cd5&#xff0c;\u5305\u62ec\u53d6\u6574&#xff08;Floor\/Ceiling\/Round&#xff09;\u3001\u7edd\u5bf9\u503c&#xff08;Abs&#xff09;\u3001\u6700\u5927\u6700\u5c0f\u503c&#xff08;Max\/Min&#xff09;\u3001\u5f00\u65b9&#xff08;Sqrt&#xff09;\u3001\u5e42\u8fd0\u7b97&#xff08;Pow&#xff09;\u3001\u4e09\u89d2\u51fd\u6570&#xff08;Sin\/Cos\/Tan&#xff09;\u548c\u5bf9\u6570\u8fd0\u7b97&#xff08;Log\/Log10&#xff09;\u3002DateTime\u7c7b\u7528\u4e8e\u65e5\u671f\u65f6\u95f4\u64cd\u4f5c","og_url":"https:\/\/www.wsisp.com\/helps\/60025.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-14T13:17:21+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/60025.html","url":"https:\/\/www.wsisp.com\/helps\/60025.html","name":"C#\u57fa\u7840\u5de5\u5177\u6a21\u5757\uff1aMath\u9759\u6001\u7c7b\u3001\u65e5\u671f\u76f8\u5173\u529f\u80fd\u68b3\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-14T13:17:21+00:00","dateModified":"2026-01-14T13:17:21+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/60025.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/60025.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/60025.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"C#\u57fa\u7840\u5de5\u5177\u6a21\u5757\uff1aMath\u9759\u6001\u7c7b\u3001\u65e5\u671f\u76f8\u5173\u529f\u80fd\u68b3\u7406"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/60025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=60025"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/60025\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=60025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=60025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=60025"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=60025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}