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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:23:50+00:00 2026-06-03T18:23:50+00:00

I am trying to represent the maximum 64-bit unsigned value in different bases. For

  • 0

I am trying to represent the maximum 64-bit unsigned value in different bases.

For base 2 (binary) it would be 64 1’s:

    1111111111111111111111111111111111111111111111111111111111111111

For base 16 (hex) it would be 16 F’s

    FFFFFFFFFFFFFFFF

For base 10 (decimal) it would be:

    18446744073709551615

I’m trying to get the representation of this value in base 36 (it uses 0-9 and A-Z). There are many online base converters, but they all fail to produce the correct representation because they are limited by 64-bit math.

Does anyone know how to use DC (which is an extremely hard to use string math processors that can handle numbers of unlimited magnitude) and know how to do this conversion? Either that or can anyone tell me how I can perform this conversion with a calculator that won’t fail due to integer roll-over?

  • 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-03T18:23:52+00:00Added an answer on June 3, 2026 at 6:23 pm

    I mad a quick test with ruby:

    i = 'FFFFFFFFFFFFFFFF'.to_i(16)
    puts i               #18446744073709551615
    puts i.to_s(36)      #3w5e11264sgsf
    

    You may also use larger numbers:

    i = 'FFFFFFFFFFFFFFFF'.to_i(16) ** 16
    puts i                  
    puts i.to_s(36)      
    

    result:

    179769313486231590617005494896502488139538923424507473845653439431848569886227202866765261632299351819569917639009010788373365912036255753178371299382143631760131695224907130882552454362167933328609537509415576609030163673758148226168953269623548572115351901405836315903312675793605327103910016259918212890625
    1a1e4vngailcqaj6ud31s2kk9s94o3tyofvllrg4rx6mxa0pt2sc06ngjzleciz7lzgdt55aedc9x92w0w2gclhijdmj7le6osfi1w9gvybbfq04b6fm705brjo535po1axacun6f7013c4944wa7j0yyg93uzeknjphiegfat0ojki1g5pt5se1ylx93knpzbedn29
    

    A short explanation what happens with big numbers:

    Normal numbers are Fixnums. If you get larger numbers, the number becomes a Bignum:

    small = 'FFFFFFF'.to_i(16)
    big = 'FFFFFFFFFFFFFFFF'.to_i(16) ** 16
    
    puts "%i is a %s" % [ small, small.class ]
    puts "%i\n is a %s" % [ big, big.class ]
    puts "%i^2 is a %s" % [ small, (small ** 2).class ]
    

    Result:

    268435455 is a Fixnum
    179769313486231590617005494896502488139538923424507473845653439431848569886227202866765261632299351819569917639009010788373365912036255753178371299382143631760131695224907130882552454362167933328609537509415576609030163673758148226168953269623548572115351901405836315903312675793605327103910016259918212890625
     is a Bignum
    268435455^2 is a Bignum
    

    From the documentation of Bignum:

    Bignum objects hold integers outside the range of Fixnum. Bignum objects are created automatically when integer calculations would otherwise overflow a Fixnum. When a calculation involving Bignum objects returns a result that will fit in a Fixnum, the result is automatically converted.

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

Sidebar

Related Questions

I am trying to deserialize a list of key value pairs that represent a
I'm trying to represent the port number 9876 (or 0x2694 in hex) in a
I'm trying to represent several surface plots* for which the scale differs a bit.
I'm trying to get the maximum value for an attribute in an Entity in
I'm trying to represent in data base a editable table, with multiple field types.
I'm trying to represent a two-dimensional coordinate grid with a two-dimensional array. Problem is,
I'm trying to represent the result of an MD5 hash in the shortest possible
I am trying to represent a graph using disjoint union and record. The following
I am having trouble trying to represent the below SQL (which returns the results
I've been trying to make a generic class to represent a range of values

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.