• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Radix problem

 
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


I am used to decimal, octal, hexadecimal, binary.
But how to compute when radix is somewhat 4,5 ...


Please help me!


Regards,
cmbhatt
 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1111 for base 3:

1 * 3 "to the power of" 0 = 1
1 * 3 "to the power of" 1 = 3
1 * 3 "to the power of" 2 = 9 (i.e 3*3)
1 * 3 "to the power of" 3 = 27 (i.e 3*3*3)

So total is 1 + 3 + 9 = 27 = 40

1111 for base 4:

1 * 4 "to power of" 0 = 1
1 * 4 "to power of" 1 = 4
1 * 4 "to power of" 2 = 16 (i.e 4*4)
1 * 4 "to power of" 3 = 64 (i.e 4*4*4)

So total is 1 + 4 + 16 + 64 = 85

Hope this helps. I'm no Mathematics teacher, so this is the best that I can explain.
 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Fantastic Steven Young!

Awesome description, even a child "like me" can understand this!

Great Job!


Thankkoo!
cmbhatt
 
You showed up just in time for the waffles! And this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic