public static string base_convert(string number, int fromBase, int toBase)
{
if (number == null)
{
return "0";
}
double value;
try
{
value = BaseToDouble(number, fromBase);
}
catch (ArgumentException)
{
//PhpException.Throw(PhpError.Warning, LibResources.GetString("arg:invalid_value", "fromBase", fromBase));
//return PhpValue.False;
throw new NotImplementedException();
}
try
{
return DoubleToBase(value, toBase);
}
catch (ArgumentException)
{
//PhpException.Throw(PhpError.Warning, LibResources.GetString("arg:invalid_value", "toBase", toBase));
//return PhpValue.False;
throw new NotImplementedException();
}
}