Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's TI-BASIC subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. TI-Basic Brain Teasers => TI-BASIC
Author Message
ADOS (Attention deficit... Oh! Shiny!)


Joined: 15 Sep 2005
Posts: 923

Posted: 23 Mar 2009 04:16:38 pm    Post subject:

The goal is the find the magnitude of a number (ie. the exponent in scientific notation)
135 returns 2 (1.35e2)
.001 returns -3 (1e-3)
Back to top

Active Member

Joined: 25 Jul 2006
Posts: 700

Posted: 23 Mar 2009 05:27:36 pm    Post subject:

If the number is in Ans I got 12 bytes:
Back to top
μολών λαβέ

Active Member

Joined: 27 Mar 2005
Posts: 569

Posted: 23 Mar 2009 09:17:45 pm    Post subject:

"Magnitude" I think is not the correct term, more like "exponent" as in "mantissa and exponent" like in here.

For the cost of one more byte, this works for all real numbers (assuming the argument is stored in Ans): [whiteout]int(log(abs(Ans[/whiteout]
(from here)


Last edited by Guest on 12 Jul 2010 01:14:01 am; edited 1 time in total
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
» View previous topic :: View next topic  
Page 1 of 1 » All times are GMT - 5 Hours