diff options
Diffstat (limited to 'Working_Examples/293/CH11/EX11.2/eg11_2.sce')
-rwxr-xr-x | Working_Examples/293/CH11/EX11.2/eg11_2.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Working_Examples/293/CH11/EX11.2/eg11_2.sce b/Working_Examples/293/CH11/EX11.2/eg11_2.sce new file mode 100755 index 0000000..2158620 --- /dev/null +++ b/Working_Examples/293/CH11/EX11.2/eg11_2.sce @@ -0,0 +1,11 @@ +//a
+N8 = '432'; //octal number
+N = oct2dec(N8); //decimal representation of N8
+disp("a")
+disp(N,"decimal equivalent of 432 = ")
+
+//b
+N16 = 'C4F'; //hexadecimal number
+N = hex2dec(N16); //decimal representation of N16
+disp("b")
+disp(N,"decimal equivalent of C4F = ")
|