摘要: System.Math 类中定义了用于数学计算的函数。Math 类包括三角函数、对数函数和其他常用数学函数。下列函数是在 System 名称空间的 Math 类中定义的函数。注意:要使用这些函数,请通过在源代码顶部添加以下代码将 System.Math 名称空间导入到项目中: Imports System.MathAbsAbs 函数返回指定数值的绝对值。Abs 示例:本示例使用 Math 类的 Abs 方法来计算一个数值的绝对值。 ' Code will not compile unless it is put in a Sub or in a Function.Dim MyNumber As 阅读全文
posted @ 2010-12-15 09:55 meil 阅读(4847) 评论(0) 推荐(0) 编辑