calculations in fields - not all

Please use this forum to post feedback and suggestions related to QCAD.

Moderator: andrew

Post Reply
fdixon
Junior Member
Posts: 21
Joined: Thu Sep 17, 2020 6:22 pm

calculations in fields - not all

Post by fdixon » Wed Oct 07, 2020 9:10 pm

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.

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: calculations in fields - not all

Post by Husky » Thu Oct 08, 2020 3:41 am

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..."

CVH
Premier Member
Posts: 3415
Joined: Wed Sep 27, 2017 4:17 pm

Re: calculations in fields - not all

Post by CVH » Thu Oct 08, 2020 5:55 am

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

Post Reply

Return to “QCAD Suggestions and Feedback”