B Bill Nguyen Dec 30, 2003 #1 How do I get the absolute value of an expression in VB.NET? The new ABS function looks scary to me! Thanks Bill
How do I get the absolute value of an expression in VB.NET? The new ABS function looks scary to me! Thanks Bill
A Armin Zingler Dec 30, 2003 #2 Bill Nguyen said: How do I get the absolute value of an expression in VB.NET? The new ABS function looks scary to me! Click to expand... Why scary? value2 = math.abs(value1)
Bill Nguyen said: How do I get the absolute value of an expression in VB.NET? The new ABS function looks scary to me! Click to expand... Why scary? value2 = math.abs(value1)
J Jay B. Harlow [MVP - Outlook] Dec 30, 2003 #3 Bill, How do I get the absolute value of an expression in VB.NET? Click to expand... Have you tried System.Math.Abs? The new ABS function looks scary to me! Click to expand... Or are you referring to a different ABS function? Dim x As Integer x = Math.Abs(-1) Alternatively you can import System.Math: Imports System.Math Dim x As Integer x = Abs(-1) Hope this helps Jay
Bill, How do I get the absolute value of an expression in VB.NET? Click to expand... Have you tried System.Math.Abs? The new ABS function looks scary to me! Click to expand... Or are you referring to a different ABS function? Dim x As Integer x = Math.Abs(-1) Alternatively you can import System.Math: Imports System.Math Dim x As Integer x = Abs(-1) Hope this helps Jay
R Rob Teixeira [MVP] Dec 30, 2003 #4 System.Math.Abs(<numeric expression here>) What's scary about it? -Rob Teixeira [MVP]
H Herfried K. Wagner [MVP] Dec 30, 2003 #5 * "Bill Nguyen said: How do I get the absolute value of an expression in VB.NET? The new ABS function looks scary to me! Click to expand... ?!? \\\ d = Math.Abs(...) ///
* "Bill Nguyen said: How do I get the absolute value of an expression in VB.NET? The new ABS function looks scary to me! Click to expand... ?!? \\\ d = Math.Abs(...) ///