← All bug reports

FS#1149Calculate error

Type
Bug
Status
Closed
Resolution
Not a bug
Category
QCAD (main)
Severity
Low
Priority
Low
Reported version
3.7.5
Operating system
Linux (All / Other)
Reported
2014-12-25 by JJ
Closed
2014-12-25 by andrew

If I want to draw circle with poin and raduis and write to radus window formula 4^2, Qcad calculates 4+2 not 4².

Comments (4)

andrew 2014-12-25

BTW: pow(x,y) also works. Also available in the global scope: abs, sin, cos, tan, ceil, floor, max, min, sqrt, log, PI, ...

JJ 2014-12-26

I write "pow(4,2)". Qcad says "pow(4.2) is not a normal number".
I wrote "comma" and Qcad says "point"?!
Is it something to do locales? We use here comma as a decimal point.

andrew 2014-12-26

Unfortunately, if you use a comma as decimal point, this will not work since the expression would be ambiguous.
f(1,2,3) could mean call f with three parameters 1, 2 and 3 or two parameters 1.2 and 3 or two parameters 1 and 2.3.

You can force QCAD to work with a dot as decimal point instead under:
Edit > Application Preferences > General > Coordinate Format