×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

20 significant digits and the while loop

20 significant digits and the while loop

20 significant digits and the while loop

(OP)
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

RE: 20 significant digits and the while loop

(OP)
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.  
 

RE: 20 significant digits and the while loop

Can you please post your code? It's hard to debug code without seeing it.


 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close