Mo., 23 Juni 2025 23:03:01 +0200

C64 BASIC V2.0: Operator: ^

-


Letztes Update am Sa., 31 Mai 2025 14:26:00 +0200 von Andreas Potthoff

^

  • Exponentiation
  • Typ: Funktion, numerisch | Funktion: Arithmetik
  • Syntax: <operand> ^ <operand>

Aktion, Hinweise, Tipps, Tricks:

EXPONENTIERUNG Der Aufwärtspfeil (^) gibt an, dass der Operand links mit der Potenz des rechten Operanden (dem Exponenten) potenziert wird. Ist der Operand rechts eine 2, wird die linke Zahl quadriert; ist der Exponent eine 3, wird die linke Zahl hoch drei potenziert usw. Der Exponent kann eine beliebige Zahl sein, solange das Ergebnis der Operation eine gültige Gleitkommazahl ergibt.

Beispiele:

                     2^2        Entspricht: 2*2
                     3^3        Entspricht: 3*3*3
                     4^4        Entspricht: 4*4*4*4
                     AB^CD
                     3^-2       Entspricht: 1/3*1/3


BefehleCLOSE, CLR, CMD, CONT, DATA, DEF, DIM, END, FOR, GET, GET#, GOSUB, GOTO, IF, INPUT, INPUT#, LET, LIST, LOAD, NEW, NEXT, ON, OPEN, POKE, PRINT, PRINT#, READ, REM, RESTORE, RETURN, RUN, SAVE, STOP, SYS, VERIFY, WAIT
Befehle Spezial (Bywords)FN, GO, NOT, SPC(, TAB(, THEN, TO, STEP
Arithmetische und logische Operatoren+, , *, /, ^, >, =, <, AND, OR
FunktionenABS, ASC, ATN, CHR$, COS, EXP, FRE, INT, LEFT$, LEN, LOG, MID$, PEEK, POS, RIGHT$, RND, SGN, SIN, SQR, STR$, TAN, USR, VAL
Konstanten und SystemvariablenPi, ST, TI, TI$
image_pdfimage_print
Andreas Potthoffhttps://electrodrome.net
Computer-Nerd seit der ersten 8-bit Generation (1981), SysOp, IT-Spezialist, System Administrator, Webmaster, Maker...
0 0 votes
Artikel Bewertung
Datenschutz
0 Kommentare
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Related Stories

0
Would love your thoughts, please comment.x