update build

This commit is contained in:
2022-10-03 16:43:16 -05:00
parent b5c8506d05
commit f2f5111937
9 changed files with 9 additions and 9 deletions

View File

@@ -50,14 +50,14 @@ namespace WindowsFormsApplication1
private void computeButton_Click(object sender, EventArgs e)
{
// Define variables
int decimalNum = 0, hexNum = 0, binNum = 0, octalNum = 0;
long decimalNum = 0, hexNum = 0, binNum = 0, octalNum = 0;
try
{ // Extract data from text boxes.
decimalNum = int.Parse(decimalTextBox.Text);
hexNum = Convert.ToInt32(hexTextBox.Text, 16);
binNum = Convert.ToInt32(binaryTextBox.Text, 2);
octalNum = Convert.ToInt32(octalTextBox.Text, 8);
decimalNum = long.Parse(decimalTextBox.Text);
hexNum = Convert.ToInt64(hexTextBox.Text, 16);
binNum = Convert.ToInt64(binaryTextBox.Text, 2);
octalNum = Convert.ToInt64(octalTextBox.Text, 8);
}
catch (Exception Ex)
{