Results 1 to 4 of 4

Thread: Base Converter

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2009
    Location
    Amsterdam, NY
    Posts
    85

    Base Converter

    This Function is a Base converter that will take in any value from any base for [2,36] (I believe [] means inclusive, if I am mistaken, please correct me.)

    The main difference between mine and many other converters of this type is that I use the BigInteger class (so .NET 4.0 is required), this makes it able to work with VERY large numbers, I think the only limit on it is at one part of my code I need to pass into a .substring an integer, so this limits the amount of digits of your number to about 2.4 billion (it is commented in my code where that is)

    To use it, copy it into your code (ok.. hopefully that part was obvious):

    Fully improved code on next post: (went from a 220 line function to a 72 or so line class) huge difference when switching from a select....case to having what i needed inside of a list and using .indexof and .item
    Attached Files Attached Files
    Last edited by patplays852; Jul 20th, 2010 at 07:02 PM. Reason: update

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width