I need instance method(s) within the class am writing that convert from any base to base 10 & vice versa WIThOUT USING ANY LIBRARY ROUTINE.
//this is what i have so far
private int DecimalToBinary(int Decimal, int BaseNumber)
{
int Reminder;
do
{
Reminder = Decimal % BaseNumber;
}
while (Reminder > 0);
return.......; //need help on how to get/pick all the reminder together after above loop is excuted ?