New to to forum really. only a couple of posts so far.
I tried to do a calculation in the text edit box, the one you get if you 2xclick the text, and it did not work. I assume that it is not actually enabled for that text box so its is not a bug. It is a consistency things though. I did expect it would accept a calculation is all, not big deal it didn't.
calculations in fields - not all
Moderator: andrew
Re: calculations in fields - not all
Well - the purpose of a text tool is to display a text. Otherwise it would be called Calculator ....
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Re: calculations in fields - not all
Hi,
The text editor is only for plain text.
Someone else wouldn't be pleased if his formula in text was calculated instead of displayed.
Most entry fields where one has to enter values do math.
Why not use the command line, start with '='.
Available are:
The common arithmetic operators;
The use of parentheses;
Numbers: PI; LN2; LN10; LOG2E; LOG10E; SQRT1_2 (=1/2); SQRT2; E itself by exp(1)
Functions: abs(v); ceil(v); floor(v); exp(v); log(v); max(u,v, ...); min(u,v, ...); pow(a, b); sqrt(v); random(); round(v)
rad2deg(v); deg2rad(v);
sin(v); cos(v); tan(v); asin(v); acos(v); atan(v) & atan2(y,x)
log10(v); log1p(v); log2(v);
sign(v);
cosh(v); sinh(v); tanh(v); acosh(v); asinh(v); atanh(v);
expm1(v); hypot(u,v, ...); cbrt(v); trunc(v);
Trig math is in degrees.
Regards,
CVH
The text editor is only for plain text.
Someone else wouldn't be pleased if his formula in text was calculated instead of displayed.
Most entry fields where one has to enter values do math.
Why not use the command line, start with '='.
Available are:
The common arithmetic operators;
The use of parentheses;
Numbers: PI; LN2; LN10; LOG2E; LOG10E; SQRT1_2 (=1/2); SQRT2; E itself by exp(1)
Functions: abs(v); ceil(v); floor(v); exp(v); log(v); max(u,v, ...); min(u,v, ...); pow(a, b); sqrt(v); random(); round(v)
rad2deg(v); deg2rad(v);
sin(v); cos(v); tan(v); asin(v); acos(v); atan(v) & atan2(y,x)
log10(v); log1p(v); log2(v);
sign(v);
cosh(v); sinh(v); tanh(v); acosh(v); asinh(v); atanh(v);
expm1(v); hypot(u,v, ...); cbrt(v); trunc(v);
Trig math is in degrees.
Regards,
CVH