I'd use mod:

   All=. 4, 5.6, 7.3, 8, 9, 9.2, 9.9, 12, 15 

   (0=1|All)#All
4 8 9 12 15
   

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Vincent-Jones
Sent: Saturday, March 04, 2006 18:18
To: JSoftware Programming
Subject: [Jprogramming] Whole Numbers

I am looking for a simple way to eliminate fractional numbers from a list.

All=. 4, 5.6, 7.3, 8, 9, 9.2, 9.9, 12, 15
Whole 4 8 9 12 15

Currently I am comparing against a >. but that appears rather clumsy

David


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to