---
version: 0.1.0
precision: 4
---
# draftply — Basics (Free)
# Just type. Results appear live in the right column.
# Comments start with # or //

# Arithmetic — precedence, powers, modulo
2 + 3 * 4 - 1
2 ^ 10
17 % 5

# Built-in constants
pi
e

# Variables — assign once, reuse anywhere
price = 49.90
quantity = 3
tax = 0.19

# A plain assignment can be reused on later lines
net = price * quantity
# A labelled result — text before the ':' just names the line (display only)
total with tax: net * (1 + tax)

# Built-in functions (angles in radians)
sqrt(2)
round(sin(pi / 4) * 10000) / 10000
max(3, 7) + min(10, 4)

# Text with an embedded calculation in { }
You pay {price * quantity * (1 + tax)} EUR including tax.
