Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pas2help.x missar några rader. #10

Open
ChristerNilsson opened this issue Nov 10, 2023 · 2 comments
Open

pas2help.x missar några rader. #10

ChristerNilsson opened this issue Nov 10, 2023 · 2 comments

Comments

@ChristerNilsson
Copy link
Owner

ChristerNilsson commented Nov 10, 2023

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
Copy link

BertilF commented Nov 12, 2023

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

@ChristerNilsson
Copy link
Owner Author

ChristerNilsson commented Nov 12, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants