On Monday, November 2, 2015 at 5:49:03 PM UTC-8, Alex Glaros wrote: > > evidently I don't understand the range validator. To me, user entry of > 1e100+1 gets accepted. So I don't understand how validation works. Goal > is to have no number at all. So if I reject everything between two ranges, > then user only has needs one number larger than range. >
IS_INT_IN_RANGE(-sys.maxint -1, sys.maxint) prevents that, > Anyway, I don't have to get it for now as the = int() method works for my > app > > That should do it, but if you've already got a float f, then f == math.trunc(f) would be another test that would find an inappropriate value, if I understand you correctly. /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

