Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

20 significant digits and the while loop

Status
Not open for further replies.
Nov 24, 2004
159
0
0
GB
Hi

Does anyone know how to get around the 20 significant digis in a while loop

all i get is the following error from a script when it comes to processing the large figure

Code:
./pali.sh: line 43: [: 13305261530450734933: integer expression expected
./pali.sh: line 55: [: -eq: unary operator expected
7197630720180367016 is not a palindrome 196
./pali.sh: line 19: [: 13305261530450734933: integer expression expected

up to this point it processes with out an issue.
(standard_in) 2: parse error
./pali.sh: line 43: [: -gt: unary operator expected
13305261530450734933 is a palindrome of 196 with a sum of
 
Hi

Does anyone know how to get around the 20 significant digis in a while loop all i get is the following error from a script when it comes to processing the large figure

Code:
./pali.sh: line 43: [: 13305261530450734933: integer expression expected
./pali.sh: line 55: [: -eq: unary operator expected
7197630720180367016 is not a palindrome 196
./pali.sh: line 19: [: 13305261530450734933: integer expression expected
(standard_in) 2: parse error
./pali.sh: line 43: [: -gt: unary operator expected
13305261530450734933 is a palindrome of 196 with a sum of

up to this point it processes with out an issue.
 
Can you please post your code? It's hard to debug code without seeing it.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top