No, it will go from any base to any base, asuming it is a base below 16 and given in a String format.
Chris
Type: Posts; User: Freaky Chris
No, it will go from any base to any base, asuming it is a base below 16 and given in a String format.
Chris
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...
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',...
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 >...