|
-
Aug 12th, 2008, 08:51 AM
#1
Thread Starter
Addicted Member
[RESOLVED] [2005] Get value range of variable
Hi all,
I am having a problem. I need to know how to check if a value is equal to plus or minus five million of another value.
For instance
Code:
if amount 1 = amount2 +- 5000000 then
I know this is not correct, because it assumes you want to subtract 5milli from amount2. I don't actually want to subtract anything from amount2, just see if amount1 falls within that range. For example, if amount1 is 10milli, and amount2 is 13milli, then that is considered a "match" (for the purposes of this question anyway).
I know there's probably something (again) fundamental that I'm missing.
If my post helped you, please rate it!
Languages: VB/ASP.NET 2005, C# 2008,VB6
Databases: Oracle (knowledge not currently in use), DB2
FROM Customers
WHERE We_Know_What_We_Want <> DB.Null
SELECT *
0 rows returned
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|