ChristerNilsson / 2023

0 stars 0 forks source link

pas2help.x missar några rader. #10

Open ChristerNilsson opened 7 months ago

ChristerNilsson commented 7 months ago

Hjälpämnet (name) utelämnas helt:

(Kanske är din mening)

 <(name) a1,...>:
   A user defined function (or definition).

   Evaluate function name as a macro and return the resulting string.

   Arguments appear in the following way in the string:

   $n is converted to argument n.
   $n&&& is converted to argument n followed by spaces until it occupies
      at least) 5 columns.
   &&&$n is as $n&&& but the argument will be rightadjusted.

   User defined functions can also be used in strings that are used for
   comparison (patterns), for example in ?"..."?, <ifeq str,...> and
   <case instr,compstr1,resultstr2,compstr2,resultstr2,...>

Två rader saknas i samband med calc och max:

   Evaluate an algebraic expression.
 <max expr1,expr2[,decimals]>:

Eventuellt beror detta fel på att du använder calc istf max i xal.pas

BertilF commented 7 months ago

Ja där fanns en klar typo. Dessutom saknades ganska mycket i hjälpen för calc. Nu ser det förbättrat och ser ut så här: enter: <calc expr[,decimals]>: Evaluate an algebraic expression.

Arithmetic operators:

ChristerNilsson commented 7 months ago

Kanske ”min” också borde definieras för fullständighetens skull.

/Christer Nilsson 070-749 6800

On Sun, 12 Nov 2023 at 09:35, BertilF @.***> wrote:

Ja där fanns en klar typo. Dessutom saknades ganska mycket i hjälpen för calc. Nu ser det förbättrat och ser ut så här: enter: <calc expr[,decimals]>: Evaluate an algebraic expression.

Arithmetic operators:

      • / // (integer division) % (mod) ** (raised to) Relational operators:

        < >= <= = != Boolean operators: ! (not) & (and) | (or) Parentheses: ( ) enter: <max expr1,expr2[,decimals]>: Evaluate two algebraic expressions expr1 and expr2 and return the highest. Examples: <set $a,1.9> <max $a-2.3,0,1> => 0 <max $a-1.3,0,1> => 0.6

— Reply to this email directly, view it on GitHub https://github.com/ChristerNilsson/2023/issues/10#issuecomment-1807056556, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2HFCYATXTUNYXEWDGM7R3YECC5TAVCNFSM6AAAAAA7GFPB7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBXGA2TMNJVGY . You are receiving this because you authored the thread.Message ID: @.***>