Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 157 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

With the Data Explorer, when using "strongly-typed" integer parameters in the form of ##VariableName:int##, you can't enter negative values. When attempting to do so, you get an error message:

Expected value of VariableName to be a int!

You can try this for yourself; I noticed this while composing a simple "worst answers" query with a user-supplied cutoff score. Attempting to enter negative scores causes this error, while values of 0 and above work. (Don't try this at home Stack Overflow, kids!)

share|improve this question
up vote 4 down vote accepted

Yeah, it seems that the numeric typed (both int and float) parameters never accepted negative values. I've gone ahead and updated the value checks to allow this, so now your example works in my local environment.

I imagine that this was just an overlooked use case, so hopefully it'll be pulled and Data Explorer updated soon, unless waffles had a reason for this being the way it was.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .