Jump to content
  • 0

Number specified by variable is not assigned to gg.refineNumber


Player4
 Share

Question

As the title suggests, the number specified by the variable b

string.format("%1.11f",b) in gg.refineNumber

will erase all the numbers.

Maybe I'm not explaining it well enough.

I'll paste the syntax, please help me solve this problem.

 

for a = 1, 1 do

b = 0.1

while b < 0.91 do

gg.clearResults()

gg.setRanges(gg.REGION_OTHER)

gg.refineNumber(string.format("%1.11f",b), gg.TYPE_DOUBLE, gg.SIGN_NOT_EQUAL)

b = b + 0.1

end

end

Edited by Player4
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

refineNumber function does nothing when search results list is empty as specified in the description of the function in the documentation:

Quote

Perform a refine search for a number, with the specified parameters.

If no results in results list then do nothing.

To start new search use searchNumber function that works like described below:

Quote

Perform a search for a number, with the specified parameters.

If no results in results list then perform new search, else refine search. So if you need to perform a search, without refine, you must first call clearResults.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.