|
-
Jun 16th, 2010, 02:43 PM
#1
Thread Starter
Lively Member
"roughly equals"
It has occoured to me that i compare a lot of numbers that i want to be roughly the same like 103 and 105 = good or 3.2 and 3.1 = good and writing out the "If a+3 > b and a-3<b then" to give it a range is tedious, harder to read and i imagine not as good performance as possible alternatives so i was wondering if there is any kind of operator or .net function to get a true or false from 2 numbers where i can define the accuracy they must meet at?
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
|