Repository navigation
CAL Command
Hakan Seven edited this page Nov 8, 2026
·
1 revision
Evaluates an arithmetic or geometric expression at the command line and prints the result.
| Command | CAL |
| Web app | Available |
| Since | 0.7.0 |
- Run
CAL. - At "CAL expression (e.g. (2+3)*4):", type an expression and press Enter. Spaces inside the expression are allowed.
- The result is printed as
= <value>.
You can also type the expression on the same line, for example CAL (2+3)*4.
- Operators:
+ - * /,^for powers, and parentheses. - Points are written in square brackets, for example
[1,2,0], and can be added, subtracted and scaled. - Constants and memory:
pi, andansfor the last result. Store a value with$name = expressionand use it later as$name. - Unit suffixes convert to drawing units:
mm,cm,m,km,inor",ftor'. Angle suffixes:deg,rad,grad. - Functions include
sin,cos,tanand their inverses,sqrt,cbrt,root,abs,round,floor,ceil,fact,ln,log,exp,pow,min,max,d2r,r2d, and for pointsdist,ang,mid,xof,yof,zof.getvarreads a system variable. -
CALuses the same calculator as theQUICKCALCpalette. - An invalid expression prints an error that starts with "CAL:".
Open CAD Studio is free software under the GPL-3.0 licence · Source code · Download · Web app · Discussions
Get started
- Installation
- Your First Drawing
- Tutorials
- The User Interface
- Ribbon Reference
- Workspaces and Toolbars
- Navigating the Drawing
Draw and edit
- Drawing Setup and Units
- Precision Drawing
- Isometric Drafting
- Drawing Objects
- Multilines
- Selecting Objects
- Modifying Objects
- Hatches and Fills
- Layers and Properties
Annotate
Organise and reuse
Present and share
3D
Tools
Reference