G
greenflame
How can I tell if a variable. I want ot tell whether two variables are:
1. Both numbers. Just a number. same as the number object in
javascript.
2. Either one is a string containing a number. For exmaple a
string like "354" or "295.395".
3. Either are strings containing a fraction. For example a string
like "46/987".
4. Either is a "fraction". By "fraction" I mean that it is either
an array of two numbers or two number strings like in number 2.
The first being the top and the second being the bottom. For
example: [34,78] or ["34","57"].
1. Both numbers. Just a number. same as the number object in
javascript.
2. Either one is a string containing a number. For exmaple a
string like "354" or "295.395".
3. Either are strings containing a fraction. For example a string
like "46/987".
4. Either is a "fraction". By "fraction" I mean that it is either
an array of two numbers or two number strings like in number 2.
The first being the top and the second being the bottom. For
example: [34,78] or ["34","57"].