Integer part of divide

Kay C Lan lan.kc.macmail at gmail.com
Sun Apr 13 22:03:00 EDT 2014


Checkout div in the dictionary

put 20 div 7 into msg


On Mon, Apr 14, 2014 at 9:34 AM, Peter Haworth <pete at lcsql.com> wrote:

> 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
>



More information about the use-livecode mailing list