This commit is contained in:
Holger Vogt 2020-11-18 16:36:27 +01:00
parent e8ecb8ccfe
commit 6055fda73d
1 changed files with 1 additions and 1 deletions

View File

@ -7638,7 +7638,7 @@ static struct card *pspice_compat(struct card *oldcard)
/* add funcs limit, pwr, pwrs, stp, if, int */
/* LIMIT( Output Expression, Limit1, Limit2)
Output will stay between the two limits given. */
new_str = copy(".func limit(x, a, b) { ternary_fcn(a>b, max(min(x, a), b), max(min(x, b), a)) }");
new_str = copy(".func limit(x, a, b) { ternary_fcn(a > b, max(min(x, a), b), max(min(x, b), a)) }");
nextcard = insert_new_line(nextcard, new_str, 4, 0);
new_str = copy(".func pwr(x, a) { pow(x, a) }");
nextcard = insert_new_line(nextcard, new_str, 5, 0);