这个比例将返回一个圆的直径圆,约3.14159。

语法


math.pi




实例uff1a




数学pi属性



无功property_value = math.pi
document.write(属性值为:+ property_value);







这将产生以下结果:


属性值为:3.141592653589793