Difference between revisions of "NL/Documentation/How Tos/Calc: functie BASIS"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Automated text replacement %s)
m (Voorbeeld:)
 
(2 intermediate revisions by 2 users not shown)
Line 23: Line 23:
 
: geeft <tt>'''WAAR'''</tt> terug. Tekst wordt teruggegeven, geen getal.
 
: geeft <tt>'''WAAR'''</tt> terug. Tekst wordt teruggegeven, geen getal.
  
=== Zie ook: ===
+
{{NL/Documentation/ZieOok|
'''[[Documentation/nl/How_Tos/Calc: functie DECIMAAL|DECIMAAL]]''',
+
* [[NL/Documentation/How_Tos/Calc: functie DECIMAAL|DECIMAAL]]
'''[[Documentation/nl/How_Tos/Calc: functie VAST|VAST]]'''
+
* [[NL/Documentation/How_Tos/Calc: functie VAST|VAST]]
  
'''[[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 ISTEKST|ISTEKST]]'''
+
* [[NL/Documentation/How_Tos/Calc: functie ISTEKST|ISTEKST]]
  
'''[[Documentation/nl/How_Tos/Calc: Tekstfuncties|Tekstfuncties]]'''
+
* [[NL/Documentation/How_Tos/Calc: Tekstfuncties|Tekstfuncties]]
  
[[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: NL/Documentation/Reference/Calc]]
 
[[Category: NL/Documentation/Reference/Calc]]

Latest revision as of 17:01, 28 January 2024


BASIS

Geeft een tekstweergave van een getal terug, in een gespecificeerde basis.

Syntaxis:

BASIS(getal; radix; minlengte)

converteert getal (een positief geheel getal) naar tekst, met de basis radix (een geheel getal tussen 2 en 36), met behulp van de tekens 0-9 en A-Z.
minlengte (optioneel) specificeert het minimale aantal teruggegeven tekens; indien nodig worden aan de linkerzijde nullen toegevoegd.

Voorbeeld:

BASIS(17; 2)

geeft 10001 terug als tekst (binair systeem).

BASIS(17; 10)

geeft 17 terug als tekst (decimaal systeem).

BASIS(255; 16; 4)

geeft 00FF terug als tekst (hexadecimaal systeem). Extra nullen worden toegevoegd om tot 4 tekens te komen.

ISTEKST(BASIS(17; 10))

geeft WAAR terug. Tekst wordt teruggegeven, geen getal.

Zie ook

Personal tools