>>You don't want Abs( ), you want the .Net equivalent of the VFP FLOOR( ) function.
>
>I still haven't find the equivalent in .NET. I tried variations of Math.Round(). As far as Math.Abs(), it simply returns the same thing. I do not understand that one. CInt() rounds to the nearest integer. So, that is not good as well.
>
>Math.Floor() seems to be the equivalent. I made some tests with it and so far that works.
>
>Thanks
You're using the wrong term. The 'absolute' means positive number. So, for negative numbers it will return the same number, but without - and for positive numbers it's the same number.
If it's not broken, fix it until it is.
My Blog