diff options
Diffstat (limited to '3860/CH1/EX1.10/Ex1_10.sce')
-rw-r--r-- | 3860/CH1/EX1.10/Ex1_10.sce | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/3860/CH1/EX1.10/Ex1_10.sce b/3860/CH1/EX1.10/Ex1_10.sce new file mode 100644 index 000000000..77c68e835 --- /dev/null +++ b/3860/CH1/EX1.10/Ex1_10.sce @@ -0,0 +1,7 @@ +//Example 1.10 Conversion from Hexadecimal to Binary.
+clc; //clears the command window.
+clear; // clears the variable browser.
+x="2EA";
+z = hex2dec(x) //Converts Hexadecimal number into decimal number.
+disp('Decimal equivalent of hexadecimal number:')
+disp(z) // displays the converted decimal number
|