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 439391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:46:16+00:00 2026-05-12T20:46:16+00:00

This is probably a quite exotic question. My Problem is as follows: The TI

  • 0

This is probably a quite exotic question.

My Problem is as follows:

The TI 83+ graphing calculator allows you to program on it using either Assembly and a link cable to a computer or its built-in TI-BASIC programming language.

According to what I’ve found, it supports only 16-Bit Integers and some emulated floats.

I want to work with a bit larger numbers however (around 64 bit), so for that I use an array with the single digits:

{1, 2, 3, 4, 5}

would be the Decimal 12345.

In binary, that’s 110000 00111001, or as a binary digit array:

{1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1}

which would be how the calculator displays it.

How would i go about converting this array of decimal digits (which is too large for the calculator to display it as a native type) into an array of decimal digits?

Efficiency is not an issue. This is NOT homework.

This would leave me free to implement Addition for such arrays and such.

thanks!

  • 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-05-12T20:46:17+00:00Added an answer on May 12, 2026 at 8:46 pm

    Thought about it and I think I would do it with the following ‘algorithm’

    • check the last digit (5 in the example case)
    • if it is odd, store (from the reverse order) a 1 in the binary array

    • now divide the number by 2 through the following method:

    • begin with the first digit and clear the ‘carry’ variable.
    • divide it by 2 and add the ‘carry’ variable. If the remainder is 1 (check this before you do the divide with an and&1) then put 5 in the carry
    • repeat untill all digits have been done

    repeat both steps again untill the whole number is reduced to 0’s.

    the number in your binary array is the binary representation

    your example:
    1,2,3,4,5

    • the 5 is odd so we store 1 in the binary array: 1
    • we divide the array by 2 using the algorithm:
    • 0,2,3,4,5 => 0,1+5,3,4,5 => 0,6,1,4,5 => 0,6,1,2+5,5 => 0,6,1,7,2

    and repeat:

    0,6,1,7,2 last digit is even so we store a 0: 0,1 (notice we fill the binary string from right to left)

    etc

    you end up with a binary

    EDIT:
    Just to clarify above: All I’m doing is the age old algorithm:

     int value=12345;
     while(value>0)
     {
          binaryArray.push(value&1);
          value>>=1;     //divide by 2
     }
    

    except in your example we don’t have an int but an array which represents a (10 base) int ;^)

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

Sidebar

Related Questions

This is probably a really simple question but one I've never quite worked out
This question is probably quite different from what you are used to reading here
This is quite probably a very silly question but I need to be sure.
this is probably quite a simple problem, however, I can't figure out how to
I have a probably quite simple to solve problem. I'm trying to parse this
This question is probably quite dumb, but I can't find an example and can't
This is probably quite a simple problem, but it's causing me to scratch my
This is probably quite a simple question but very hard to google! I'm loading
Really basic (and probably quite idiotic) question but I'm not familiar with this procedure
This is probably quite a simple question, but I can't remember how to do

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.