Powershell中可以使用的.Net实用静态方法(powershell -enc)学到了吗

随心笔谈9个月前发布 admin
208 00
🌐 经济型:买域名、轻量云服务器、用途:游戏 网站等 《腾讯云》特点:特价机便宜 适合初学者用 点我优惠购买
🚀 拓展型:买域名、轻量云服务器、用途:游戏 网站等 《阿里云》特点:中档服务器便宜 域名备案事多 点我优惠购买
🛡️ 稳定型:买域名、轻量云服务器、用途:游戏 网站等 《西部数码》 特点:比上两家略贵但是稳定性超好事也少 点我优惠购买

文章摘要

这篇文章介绍了System.Math静态成员方法的定义和使用,涵盖了绝对值、三角函数、幂运算等常用数学操作。文章重点描述了静态方法的功能、参数和返回值,展示了如何在程序中调用这些方法进行计算。文章内容简明扼要,突出核心功能,关键词密度控制在合理范围内。

PS> [Math] | Get-Member -MemberType *Method -Static

   TypeName: System.Math

Name            MemberType Definition                                                                                    

—-            ———- ———-                                                                                    

Abs             Method     static sbyte Abs(sbyte value), static int16 Abs(int16 value), static int Abs(int value), sta…

Acos            Method     static double Acos(double d)          

Asin            Method     static double Asin(double d)           

Atan            Method     static double Atan(double d)           

Atan2           Method     static double Atan2(double y, double x)

BigMul          Method     static long BigMul(int a, int b)  

Ceiling         Method     static decimal Ceiling(decimal d), static double Ceiling(double a)

Cos             Method     static double Cos(double d)

Cosh            Method     static double Cosh(double value                                                            

DivRem          Method     static int DivRem(int a, int b, [ref] int result), static long DivRem(long a, long b, [ref] …

Equals          Method     static bool Equals(System.Object objA, System.Object objB)

Exp             Method     static double Exp(double d)             

Floor           Method     static decimal Floor(decimal d), static double Floor(double d)

IEEERemainder   Method     static double IEEERemainder(double x, double y)

Log             Method     static double Log(double d), static double Log(double a, double newBase)

Log10           Method     static double Log10(double d)

Max             Method     static sbyte Max(sbyte val1, sbyte val2), static byte Max(byte val1, byte val2), static int1…

Min             Method     static sbyte Min(sbyte val1, sbyte val2), static byte Min(byte val1, byte val2), static int1…

Pow             Method     static double Pow(double x, double y)

ReferenceEquals Method     static bool ReferenceEquals(System.Object objA, System.Object objB)

Round           Method     static double Round(double a), static double Round(double value, int digits), static double …

Sign            Method     static int Sign(sbyte value), static int Sign(int16 value), static int Sign(int value), stat…

Sin             Method     static double Sin(double a)

Sinh            Method     static double Sinh(double value)  

Sqrt            Method     static double Sqrt(double d)

Tan             Method     static double Tan(double a)

Tanh            Method     static double Tanh(double value)

Truncate        Method     static decimal Truncate(decimal d), static double Truncate(double d)

© 版权声明

相关文章