Difference between revisions of "Manuals/calci/BIN2OCT"

From ZCubes Wiki
Jump to navigation Jump to search
Line 7: Line 7:
  
 
== Description ==
 
== Description ==
 +
 +
BIN2OCT(number,places)
  
 
*'number' must be a binary number.
 
*'number' must be a binary number.
Line 18: Line 20:
 
*Calci returns an #ERROR message if 'places' are nonnumeric or negative.
 
*Calci returns an #ERROR message if 'places' are nonnumeric or negative.
  
</div>
+
BIN2OCT(1100100) ''returns 144''
----
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
 
 
BIN2OCT
 
 
 
</div></div>
 
----
 
<div id="8SpaceContent" class="zcontent" align="left"> 
 
 
 
<font color="#000000"><font face="Arial, sans-serif"><font size="2">BIN2OCT(num, p)</font></font></font>
 
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2"><nowiki>=BIN2OCT(1100100) is 144</nowiki></font></font></font>
+
== Examples ==
  
</div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Syntax </div><div class="ZEditBox"><center></center></div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Remarks </div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Examples </div></div>
 
----
 
<div id="11SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Description </div></div>
 
----
 
 
<div id="2SpaceContent" class="zcontent" align="left">
 
<div id="2SpaceContent" class="zcontent" align="left">
  

Revision as of 21:08, 15 November 2013

BIN2OCT(number,places)

  • Where 'number' is a binary number to be converted and
  • 'places' is the number of characters to be used to display the output.

BIN2OCT converts a binary number to its octal equivalent.

Description

BIN2OCT(number,places)

  • 'number' must be a binary number.
  • Calci returns an #ERROR message if 'number' contains more than 10 characters (10 bits).
  • If 'number' is negative, BIN2HEX shows an #ERROR message.
  • If 'places' is not an integer, it is truncated.
  • Calci returns an #ERROR message if 'places' are nonnumeric or negative.

BIN2OCT(1100100) returns 144

Examples

Column1 Column2 Column3 Column4
Row1 1100100 144
Row2
Row3
Row4
Row5
Row6