rodrigo_sjc_sp Posted September 18, 2013 Share 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 Link to comment Share on other sites More sharing options...
rkmcswain Posted September 18, 2013 Share Posted September 18, 2013 See post 4 in this thread. Quote Link to comment Share on other sites More sharing options...
David Bethel Posted September 18, 2013 Share Posted September 18, 2013 (numberp x) -David Quote Link to comment Share on other sites More sharing options...
pBe Posted September 18, 2013 Share 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 Link to comment Share on other sites More sharing options...
Tharwat Posted September 18, 2013 Share 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 Link to comment Share on other sites More sharing options...
rodrigo_sjc_sp Posted September 18, 2013 Author Share Posted September 18, 2013 Thank you all for the tips, it worked Quote Link to comment Share on other sites More sharing options...
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.