Topics geometry In coding contests, easy way to obtain pi value is by: π=acos(−1.0) This is obvious since cos(180) = -1 Related