Search:

Type: Posts; User: Freaky Chris

Search: Search took 0.15 seconds.

  1. Replies
    8
    Views
    2,421

    Re: binary conversion..

    No, it will go from any base to any base, asuming it is a base below 16 and given in a String format.

    Chris
  2. Replies
    8
    Views
    2,421

    Re: binary conversion..

    It uses ASCII, read() returns an integer which represents the ASCII value for the character it has read. If you enter 'A' it will return 65 :).

    At least as far as I'm aware, I don't have a...
  3. Replies
    8
    Views
    2,421

    Re: binary conversion..

    public String conv(String number, int startBase, int endBase){
    if(startBase > 16 || endBase > 16) return "BASE ERROR";
    char NUMS[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A',...
  4. Replies
    8
    Views
    2,421

    Re: binary conversion..

    Some time ago I wrote this in C++. You shouldn't have a problem reading the Syntax, if you do let me know.


    std::string conv(std::string number, int startBase, int endBase){
    if(startBase >...
Results 1 to 4 of 4