67 |
|
case NumericInputTypes.Decimal: |
68 |
|
txtDecimal.Value = txtInput.Value; |
69 |
|
ConvertData(txtDecimal.Value, 10); |
70 |
+ |
FloatConverter.SetFloatValue(Convert.ToSingle(txtDecimal.Value)); |
71 |
+ |
FloatConverter.CalculateHexFloat(); |
72 |
|
break; |
73 |
|
case NumericInputTypes.Hex: |
74 |
|
txtHex.Value = txtInput.Value; |
75 |
|
ConvertData(txtHex.Value, 16); |
76 |
+ |
FloatConverter.SetFloatHexValue(Convert.ToUInt32(txtHex.Value,16)); |
77 |
+ |
FloatConverter.CalculateFloat(); |
78 |
|
break; |
79 |
|
//case NumericInputTypes.IEEE754HexFloat: |
80 |
|
// txtFloat.Value = txtInput.Value; |
85 |
|
ConvertData(txtOctal.Value, 8); |
86 |
|
break; |
87 |
|
} |
88 |
+ |
|
89 |
|
} |
90 |
|
catch (FormatException ex) |
91 |
|
{ |