Integer part of divide

dunbarx at dunbarx at
Sun Apr 13 23:15:00 EDT 2014


And I ain't talking about things in my pajamas.


-----Original Message-----
From: Peter Haworth <pete at>
To: How to use LiveCode <use-livecode at>
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.

lcSQL Software <>
Home of lcStackBrowser <> and
SQLiteAdmin <>
use-livecode mailing list
use-livecode at
Please visit this url to subscribe, unsubscribe and manage your subscription 


More information about the Use-livecode mailing list