Added spacing and padding support. (Note of known bug: For some reason, using the spacing combined with the auto compute feature causes an infinite loop, causing the program to crash.
This commit is contained in:
@@ -48,10 +48,10 @@ namespace WindowsFormsApplication1
|
||||
decimalNum = long.Parse(decimalTextBox.Text);
|
||||
hexNum = Convert.ToInt64(hexTextBox.Text, 16);
|
||||
// Remove spacing from binaryTextBox before parsing it
|
||||
if (spacingToggle.Checked)
|
||||
{
|
||||
//if (spacingToggle.Checked)
|
||||
//{
|
||||
binaryTextBox.Text = binaryTextBox.Text.Replace(" ", "");
|
||||
}
|
||||
//}
|
||||
binNum = Convert.ToInt64(binaryTextBox.Text, 2);
|
||||
octalNum = Convert.ToInt64(octalTextBox.Text, 8);
|
||||
paddingOffset = int.Parse(paddingOffsetTextBox.Text);
|
||||
|
Reference in New Issue
Block a user