Difference between revisions of "NL/Documentation/How Tos/Calc: functie OCT.N.BIN"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Bot: Adding Category: Documentation)
m (Voorbeeld:)
 
(2 intermediate revisions by 2 users not shown)
Line 29: Line 29:
 
: geeft <tt>'''1111111110'''</tt> terug als tekst (2-complement representatie van decimaal -2).
 
: geeft <tt>'''1111111110'''</tt> terug als tekst (2-complement representatie van decimaal -2).
  
{{Documentation/nl/ZieOok|
+
{{NL/Documentation/ZieOok|
* [[Documentation/nl/How_Tos/Calc: functie BIN.N.DEC|BIN.N.DEC]]
+
* [[NL/Documentation/How_Tos/Calc: functie BIN.N.DEC|BIN.N.DEC]]
* [[Documentation/nl/How_Tos/Calc: functie BIN.N.HEX|BIN.N.HEX]]
+
* [[NL/Documentation/How_Tos/Calc: functie BIN.N.HEX|BIN.N.HEX]]
* [[Documentation/nl/How_Tos/Calc: functie BIN.N.OCT|BIN.N.OCT]]
+
* [[NL/Documentation/How_Tos/Calc: functie BIN.N.OCT|BIN.N.OCT]]
* [[Documentation/nl/How_Tos/Calc: functie DEC.N.BIN|DEC.N.BIN]]
+
* [[NL/Documentation/How_Tos/Calc: functie DEC.N.BIN|DEC.N.BIN]]
* [[Documentation/nl/How_Tos/Calc: functie DEC.N.HEX|DEC.N.HEX]]
+
* [[NL/Documentation/How_Tos/Calc: functie DEC.N.HEX|DEC.N.HEX]]
* [[Documentation/nl/How_Tos/Calc: functie DEC.N.OCT|DEC.N.OCT]]
+
* [[NL/Documentation/How_Tos/Calc: functie DEC.N.OCT|DEC.N.OCT]]
* [[Documentation/nl/How_Tos/Calc: functie HEX.N.BIN|HEX.N.BIN]]
+
* [[NL/Documentation/How_Tos/Calc: functie HEX.N.BIN|HEX.N.BIN]]
* [[Documentation/nl/How_Tos/Calc: functie HEX.N.DEC|HEX.N.DEC]]
+
* [[NL/Documentation/How_Tos/Calc: functie HEX.N.DEC|HEX.N.DEC]]
* [[Documentation/nl/How_Tos/Calc: functie HEX.N.OCT|HEX.N.OCT]]
+
* [[NL/Documentation/How_Tos/Calc: functie HEX.N.OCT|HEX.N.OCT]]
* [[Documentation/nl/How_Tos/Calc: functie OCT.N.DEC|OCT.N.DEC]]
+
* [[NL/Documentation/How_Tos/Calc: functie OCT.N.DEC|OCT.N.DEC]]
* [[Documentation/nl/How_Tos/Calc: functie OCT.N.HEX|OCT.N.HEX]]
+
* [[NL/Documentation/How_Tos/Calc: functie OCT.N.HEX|OCT.N.HEX]]
  
* [[Documentation/nl/How_Tos/Calc: Functies voor converteren van getallen|Functies voor converteren van getallen]]
+
* [[NL/Documentation/How_Tos/Calc: Functies voor converteren van getallen|Functies voor converteren van getallen]]
  
* [[Documentation/nl/How_Tos/Calc: Functies alfabetisch gesorteerd|Functies - alfabetisch gesorteerd]],
+
* [[NL/Documentation/How_Tos/Calc: Functies alfabetisch gesorteerd|Functies - alfabetisch gesorteerd]]
* [[Documentation/nl/How_Tos/Calc: Functies gesorteerd per categorie|Functies - gesorteerd per categorie]]}}
+
* [[NL/Documentation/How_Tos/Calc: Functies gesorteerd per categorie|Functies - gesorteerd per categorie]]}}
[[Category: Documentation]]
+
[[Category: NL/Documentation/Reference/Calc]]

Latest revision as of 12:32, 28 January 2024


OCT.N.BIN

Converteert een octaal getal naar binair.

Deze functie is alleen beschikbaar als de Analysis AddIn is geïnstalleerd.

Syntaxis:

OCT.N.BIN(octaal_getal; aantalcijfers)

geeft tekst terug dat een binair getal vertegenwoordigt, na opgeven van octaal_getal, wat tekst of een getal mag zijn (waarvan wordt aangenomen dat het octaal is, hoewel het dat niet is).
Het teruggegeven binaire getal mag maximaal tien bits hebben in 2-complement representatie; positieve getallen zijn 0 tot en met 111111111 (negen bits die 0 tot en met 511 decimaal representeren) en negatieve getallen 1111111111 tot en met 1000000000 (tien bits die -1 tot en met -512 decimaal representeren).
octaal_getal moet daarom ook in dat bereik liggen en wordt opgegeven in 2-complement vorm met maximaal tien cijfers.
aantalcijfers is een optioneel getal dat het aantal terug te geven cijfers specificeert.

Voorbeeld:

OCT.N.BIN("14")

geeft 1100 terug als tekst.

OCT.N.BIN(14)

geeft 1100 terug als tekst. Het getal 10 wordt gelezen als octaal.

OCT.N.BIN("2'; 4)

geeft 0010 terug als tekst. OCT.N.BIN voegt voorloopnullen toe om 4 cijfers te maken.

OCT.N.BIN("7777777776")

geeft 1111111110 terug als tekst (2-complement representatie van decimaal -2).

Zie ook

Personal tools