08-17-2017 11:41 AM
@Ben wrote:
Can it be done using a regular expression?
Probably, but not with only two functions.
Starting from a numeric, we first need to format into string, followed by the suitable regex (not sure how). Then we need to convert the output into a boolean. Still three functions. 😄
08-17-2017 12:18 PM
The loop was just to set a random selection on numeric range limit.
And, I was cautious on the number limit too, christian. As far this default value
exceeds the I32 control both in numeric control and Array control works fine.
08-17-2017 12:32 PM
Actually, it is possible Ben.. with logarithmic and all math concepts involved. And in that case too, it goes different with odd and even palindrome's.. It's definitely, good to think as we are doing now.. Logically!!
@Ben wrote:
While not my area of expertise...
Can it be done using a regular expression?
Moreover, am thinking of a solution that wouldn't involve Numeric to decimal string conversion function. Cause, that's the only method to use only 2 functions in place of 3 as I have mentioned in Topic at first. Lets see..
08-17-2017 12:36 PM
@PriyadarsiniS wrote:
Actually, it is possible Ben.. with logarithmic and all math concepts involved. And in that case too, it goes different with odd and even palindrome's.. It's definitely, good to think as we are doing now.. Logically!!
@Ben wrote:
While not my area of expertise...
Can it be done using a regular expression?
Moreover, am thinking of a solution that wouldn't involve Numeric to decimal string conversion function. Cause, that's the only method to use only 2 functions in place of 3 as I have mentioned in Topic at first. Lets see..
Exercise artistic liberty and define that the number be entered as a string.
Ben
08-17-2017 12:46 PM
The solution goes something like this.. Am just thinking other possible sol. too, to just iterate the claim
As in place of 3 functions, we reduce them to 2 functions by removing decimal string conversion and using the NumericText. Text property node. Thereby, taking string form of a number from itself!!
08-17-2017 12:52 PM
@PriyadarsiniS wrote:
As in place of 3 functions, we reduce them to 2 functions by removing decimal string conversion and using the NumericText. Text property node. Thereby, taking string form of a number from itself!!
That is still three function, one being a very expensive property node! Make the input a string and get it over with. As a bonus, it will work with almost any number of digits and even detects in any random text string is palindromic at the same time.
As long as you only enter numeric characters, there is no difference to the other code.
08-17-2017 12:52 PM
08-17-2017 12:55 PM
Yup, Ben.. this was the first thought that came into picture.
Instead, of all this logical method of analyzing we just just straight away make the user right in a string control with artistic liberty, with some limitations written on the *terms and conditions view.
Better an oops than a what if..
08-17-2017 01:00 PM
08-17-2017 01:04 PM
OK So Great minds think alike
(Interesting cross-post)
How about 1 primitive? no fair peeking.......