Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Absolute value of a value
Message
From
10/11/2011 16:37:40
 
 
To
10/11/2011 16:30:05
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01528610
Message ID:
01528620
Views:
53
>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
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform