julia
p = 22/7 float(π) acc = abs(p-π) println("absolute accuracy = $acc") println("relative accuracy = $(acc/π)")