rodrigo_sjc_sp Posted September 18, 2013 Posted September 18, 2013 Sorry. the title is wrong, is if the variable is numeric! What better way to test if a variable is numeric ....... Ex: variable x = 100 x is numberic variable x = B x is not numberic Quote
pBe Posted September 18, 2013 Posted September 18, 2013 (numberp x) -David X2 And if by chance said variable is not a real nor an integer i.e x = "100" (or (numberp s) (numberp (read s))) Quote
Tharwat Posted September 18, 2013 Posted September 18, 2013 This is more specific to check if the variable is REAL or INTEGER ( according to your example ) ([color=blue]type[/color] x) Quote
rodrigo_sjc_sp Posted September 18, 2013 Author Posted September 18, 2013 Thank you all for the tips, it worked Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.