update build
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user