oddgamer Advanced Cheater
Reputation: 0
Joined: 19 Jan 2013 Posts: 60
|
Posted: Tue Feb 23, 2021 12:05 pm Post subject: Searching for small values? |
|
|
I'm trying to find a number in my game and I know it's a Double type and that it varies between -0.1 and 0.1 at the most, with a way to tell it's between different values. I've got CE checking for negative values, but beyond that... well, every time I search for something, I think it's giving me all the results for -1 to 0 or -1 to 1. That is, I just did a search for values between -0.1 and -0.02, and I've got a _lot_ of values higher than -0.02 (tons of them are 0 exactly, others things like -4E-47, which is bigger than -0.02). Is there a way to rectify this rounding while doing a 'values between' search so I can _exclude_ all of those?
I've noticed that if I, after, tell it to do a 'smaller than' for -0.02 it works just fine.
|
|
sbryzl Master Cheater
Reputation: 6
Joined: 25 Jul 2016 Posts: 252
|
Posted: Tue Feb 23, 2021 12:38 pm Post subject: |
|
|
There appears to be an issue when searching a range with 2 negative decimals.
One way around it is to first search with the first factor being a whole number, for instance between -1 and -.020. Then do a next scan with the first factor being the smaller decimal you want to use, so next scan would be -.10 to -.020.
Another way would be to do your scan normally and weed out values you don't want using the 'not' checkbox. So the next scan would be exact value 0.000000 with the 'not' box checked.
|
|