Subject Re: Problem with int() function
From Akshat Kapoor <>
Date Sat, 18 Mar 2017 23:03:37 +0530
Newsgroups dbase.getting-started

On 17/03/2017 20:20, Larry Winkler wrote:
> OK.  I'm a pain in the butt.  Here is a little test program to prove my point.  If the Integer function was working properly, there would be nothing to print.
> I finally had to disable all the code I had checking the user's input because of this problem.  It seems to me that there is a bug in dBase causing the issue.
> Thanks for your patience.
> Larry Winkler Wrote:
Try this function
usage is the same as int()
just replace int() with integ()

function integ
parameters z
temp = z
temp = temp -  temp%1
if (z - temp)>0.99
        temp = temp+1
return temp

check this for +ve integers, if it suits you then will think something
to include negative integers also.