[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
RE: [sqr-users] round
You could use the "trunc" function. For example:
let i = trunc(8/7, 0)
-----Original Message-----
From: Ben Anderson [mailto:pegandersonbd1@hotmail.com]
Sent: Tuesday, April 08, 2003 9:57 AM
To: sqr-users@sqrug.org
Subject: [sqr-users] round
I want to either do integer divide or round:
let #i = 8/7 !I want this to be 1
let #i = 7/7 !I want this to be 1
let #i = 6/7 !I want this to be 0
I've been getting the decimal values and I want the integer. If I need to
put steps in between, that's fine.
Thanks,
Ben Anderson
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users