Post Reply 
number base conversion for hp17b/17bii
06-19-2014, 01:59 AM (This post was last modified: 06-19-2014 08:55 AM by Thomas Klemm.)
Post: #2
RE: number base conversion for hp17b/17bii
(06-18-2014 06:53 PM)Don Shepherd Wrote:  BC:ANS=\(\Sigma\)(I:0:LOG(N)\(\div\)LOG(B2):1:MOD(N:B2)\(\times\)B1I+0\(\times\)L(N:IDIV(N:B2))​)

Very cool! Thanks for consistently bringing up this calculator.
You don't need MOD if you combine the calculations from successive lines.

Example: DEC → OCT
Code:
         2014
+   2 *   251
+  20 *    31
+ 200 *     3
         ----
         3736

BC:ANS=
0\(\times\)L(K:FROM-TO)
+N
+\(\Sigma\)(I:1:LOG(N)\(\div\)LOG(TO):1:
  G(K)\(\times\)L(N:IDIV(N:TO))
  +0\(\times\)L(K:FROM\(\times\)G(K))
​)


Kind regards
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: number base conversion for hp17b/17bii - Thomas Klemm - 06-19-2014 01:59 AM



User(s) browsing this thread: 1 Guest(s)