Difference between revisions of "Manuals/calci/OCT2DEC"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="2SpaceContent" align="left"><div class="ZEditBox" align=...")
 
Line 1: Line 1:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
=OCT2DEC(number, places)=
  
Syntax
+
<font color="red">places argument to be included in upcoming version</font>
  
</div></div>
+
*Where 'number' is the octal number to be converted to decimal number.
----
 
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Examples
+
OCT2DEC() converts an octal number to a decimal number.
  
</div></div>
+
== Description ==
----
 
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
 
----
 
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
 
  
<font size="5">Description</font>
+
OCT2DEC(number)
  
</div></div>
+
For example,
----
 
<div id="5SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> 
 
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">This function  converts an octal number to decimal.</font></font></font>
+
OCT2DEC("") ''returns '' as a result.
  
</div></div>
+
OCT2DEC("") ''returns '' as a result.
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="6">OCT2DEC</font></div></div>
 
----
 
<div id="9SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"
 
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">Let's see an example</font></font></font>
+
*This function is used to convert an octal number to a decimal number.
 +
*An Octal number uses digits from 0 to 9. The number can also be entered in text format (e.g "77").
 +
*A number preceding with '0' (e.g 013) should be written in text format ("013") to avoid confusion with hexadecimal numbers. 
 +
*A number can be up to 10 characters (40 bits). The most significant bit is the sign bit and remaining are magnitude bits. A negative number is represented in 2's complement format.
 +
*If the number is not a valid number, 'Calci' returns an #ERROR message.
  
<font color="#484848"><font face="Tahoma, sans-serif"><font size="1"><nowiki>=OCT2DEC(67) is 55</nowiki></font></font></font>
+
Below are few examples that show the use of combination of functions and get the result in decimal -
  
</div></div>
+
1)SUM(OCT2DEC("") + OCT2DEC("")) ''returns '' as a result.
----
 
<div id="4SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> 
 
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">'''OCT2DEC'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">(</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">'''N'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">)</font></font></font>
+
2)OCT2DEC("") - OCT2DEC("") ''returns '' as a result.
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">'''where N'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">   is the octal number that is to be convert. </font></font></font>
+
== Examples ==
  
</div></div>
+
<div id="2SpaceContent" class="zcontent" align="left">
----
 
<div id="6SpaceContent" class="zcontent" align="left">
 
  
{| id="TABLE1" class="SpreadSheet blue"
+
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
|- class="even"
| class=" " |
+
| class=" " | '''Octal Input'''
| Column1
+
| class="  " | '''Decimal Output'''
| Column2
+
 
| Column3
 
| Column4
 
 
|- class="odd"
 
|- class="odd"
| class=" " | Row1
+
| class="sshl_f" |  
| class="sshl_f" | 55
+
| class="sshl_f" |  
| class="                  " |
+
 
| class=" " |
 
| class=" " |
 
 
|- class="even"
 
|- class="even"
| class=" " | Row2
+
| class="ssh1_f" |  
| class="f52543                    " |
+
| class="sshl_f" |  
| class=" sshl_f SelectTD" |
+
 
<div id="6Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="6Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| class=" sshl_f" |
 
| class=" sshl_f" |
 
 
|- class="odd"
 
|- class="odd"
| Row3
+
| class="ssh1_f" |
| class=" " |
+
| class="sshl_f" |  
| class=" " |
+
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row4
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
| class=" " | Row5
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
 
|- class="even"
 
|- class="even"
| Row6
+
| class="ssh1_f" |
| class=" " |
+
| class="sshl_f" |  
| class=" " |
 
| class=" " |
 
| class=" " |
 
 
|}
 
|}
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
== See Also ==
----
+
 
 +
*[[Manuals/calci/DEC2HEX| DEC2HEX]]
 +
 
 +
*[[Manuals/calci/HEX2BIN| HEX2BIN]]
 +
 
 +
*[[Manuals/calci/HEX2OCT| HEX2OCT]]
 +
 
 +
*[[Manuals/calci/BIN2HEX| BIN2HEX]]
 +
 
 +
*[[Manuals/calci/OCT2HEX| OCT2HEX]]
 +
 
 +
==References==
 +
*[http://simple.wikipedia.org/wiki/Octal_numeral_system#Octal_and_decimal Octal to Decimal Conversion]

Revision as of 17:03, 10 December 2013

OCT2DEC(number, places)

places argument to be included in upcoming version

  • Where 'number' is the octal number to be converted to decimal number.

OCT2DEC() converts an octal number to a decimal number.

Description

OCT2DEC(number)

For example,

OCT2DEC("") returns as a result.

OCT2DEC("") returns as a result.

  • This function is used to convert an octal number to a decimal number.
  • An Octal number uses digits from 0 to 9. The number can also be entered in text format (e.g "77").
  • A number preceding with '0' (e.g 013) should be written in text format ("013") to avoid confusion with hexadecimal numbers.
  • A number can be up to 10 characters (40 bits). The most significant bit is the sign bit and remaining are magnitude bits. A negative number is represented in 2's complement format.
  • If the number is not a valid number, 'Calci' returns an #ERROR message.

Below are few examples that show the use of combination of functions and get the result in decimal -

1)SUM(OCT2DEC("") + OCT2DEC("")) returns as a result.

2)OCT2DEC("") - OCT2DEC("") returns as a result.

Examples

Octal Input Decimal Output

See Also

References