Integer part of divide

Peter Haworth pete at lcsql.com
Mon Apr 14 18:04:06 CEST 2014


Thanks Kay and Craig, either of those should do the trick.

Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>


On Sun, Apr 13, 2014 at 8:15 PM, <dunbarx at aol.com> wrote:

> Trunc.
>
>
> And I ain't talking about things in my pajamas.
>
>
> Craig
>
>
>
> -----Original Message-----
> From: Peter Haworth <pete at lcsql.com>
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Sent: Sun, Apr 13, 2014 9:35 pm
> Subject: Integer part of divide
>
>
> I just know this has to be simple but I need to divide one number by
> another and get just the integer part of the result.  So 20 / 7 would be 2
> for example. I tried setting the number format to "#" but I still get
> decimals in the result (that's not right is it?).
>
> For now I'm setting the itemdelimiter to "." and extracting item 1 of the
> result of the division.
>
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


More information about the use-livecode mailing list