Problem with Integer math

Discussion of the version of HanDBase that runs on the iPhone and iPod touch devices. This includes the synchronization conduits as well.

Problem with Integer math

Postby michaeltoc » Thu Jun 30, 2016 6:28 pm

Since the recent update on iOS, Calculated fields using integer fields give bad results if the integer is negative. Try this:

Set up 2 integer fields (Field1 and Field2). Set up a calculated field with the formula Field1+Field2. Add a few records, and you will see that it works fine if the integers are positive, but if one of them is negative the result is a very large number.

As a work-around, change Field1 and Field2 to Float with 0 decimal places.

Posts: 2
Joined: Sun Jul 12, 2015 8:54 am

Re: Problem with Integer math

Postby ddhsoftwareadmin » Thu Jun 30, 2016 8:41 pm

Hi Michael,

Thanks for the great bug catch- I had actually logged in to let everyone know that a new version is live in the store. So this one will have to wait for the next update- I'll try to get it fixed ASAP!
Site Admin
Posts: 221
Joined: Tue Dec 09, 2008 2:13 pm

Return to HanDBase for iPhone and iPod touch

Who is online

Users browsing this forum: No registered users and 0 guests