circumference to diameter formula code example Example: circumference equation Circumference = 2 ^ pi * radius