No language match wetin you find.
P = n × a; A = n × a² / (4 × tan(π/n))
Use decimal dot and comma to group digits.
3 ≤ n ≤ 1000000; n ∈ ℤ