Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8230521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:09:58+00:00 2026-06-07T17:09:58+00:00

Given an arbitrarily long number, how can I output its double? I know how

  • 0

Given an arbitrarily long number, how can I output its double? I know how to multiply small numbers together as long as the result is <10, but what about larger integers like 32984335, and doubling something like that? I don’t know the right way to handle something like this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T17:10:00+00:00Added an answer on June 7, 2026 at 5:10 pm

    This is the algorithm you need to implement:

    1. Start the current count with 0;
    2. Multiply the current count by ten: this can be achieved by dupping 10 times, and then adding all dupes together;
    3. Read a digit;
    4. If it’s null proceed to 8;
    5. Convert it to an actual number: this can be achieved by subtracting 48;
    6. Add it to the current count;
    7. Proceed to 2;
    8. Duplicate the current count;
    9. Adding the dupes together;
    10. Divide by ten using repeated subtraction; keep quotient and remainder;
    11. Grab the remainder;
    12. Make it a digit (add 48);
    13. Print it;
    14. Grab the quotient from 10;
    15. If it’s not zero, goto 10;
    16. The end.

    All these steps consists of basic brainfuck idioms, so it should be easy to implement.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given an arbitrarily nested data structure, how can I create a new data structure
Given a grid where I know the number of rows (which is fixed), and
Given an arbitrary file descriptor, can I make it blocking if it is non-blocking?
I'm working with some binary data that I have stored in arbitrarily long arrays
For an iPhone ebook application I need to break arbitrarily long HTML documents up
I need a map which can contain arbitrary values as long as their types
Question Using XSLT 1.0, given a string with arbitrary characters how can I get
Given a System.Windows.Controls.Control, how can I find the top left and bottom right corners
I'm workingon a way to average arbitrarily many numbers in Objective-C, and this is
Given some arbitrary SQL I would like to get the data types of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.