Integer part of divide

dunbarx at aol.com dunbarx at aol.com
Sun Apr 13 23:15:00 EDT 2014


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

 



More information about the use-livecode mailing list