[web2py] Re: Here is one of my 81 tickets today....web2py math?

2012-11-07 Thread Bill Thayer
LOL Thanks, On my re-design my previous table had requires=lambda v,r: IS_INTEGER_IN_RANGE(0, int((r.pstop-r.pstart)*1)), but that no longer works so I changed it and applied typecasting when I forgot forgot my order of ops. Thanks a bunch. --

[web2py] Re: Here is one of my 81 tickets today....web2py math?

2012-11-06 Thread LightDot
Er... it should and you're thinking right, but... IS_INT_IN_RANGE(0,int(Decimal(pstop)-Decimal(pstart)*1)) translates to x-y*1 and not (x-y)*1. Regards, Ales On Wednesday, November 7, 2012 2:15:04 AM UTC+1, Bill Thayer wrote: I'm no genius but (6-5)*1 should be 1 and 5