To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI takes an integer number from the user and determines if it is a palindrome or not.
Description
A palindrome is a number that is the same both forwards and backwards. The "Parse Number into 1D Array" community example was used to parse the input number into a 1D array of individual digits. Using this array, a comparison can be made with a reversed version of the array (Reverse 1D Array function), in order to determine if the number is identical both forwards and backwards. Since two arrays are being compared, the Compare Aggregates option of Comparison Mode was used for the Equal? function.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Yep, that is much simpler! Thanks!