Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Conversation

@AlexOldest
Copy link

This 2-stage version of converting the base is 16% faster

…n when wrong data supplied

Test block:
//.....
string s = null;
try
{
s = StringExtensions.BaseConvert("-212", 3, 10);
WriteLine(s);
s = StringExtensions.BaseConvert("312", 3, 10);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
//.....
@mythz
Copy link
Member

mythz commented Nov 21, 2015

Closing conflict, please post source code in comments.

@mythz mythz closed this Nov 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants