These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Pi in Acrobat

xrum
Registered: Feb 25 2009
Posts: 124
Answered

i have a formula that uses Pi in the calculations. I am unable to use math.Pi in livecycle, is there any other way to get Pi?

Thanks!

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Have you tried setting the language to JavaScript and write the JavaScirpt code?

$.rawValue =  radius.rawValue * radius.rawValue * Math.PI

George Kaiser

xrum
Registered: Feb 25 2009
Posts: 124
math.PI did not work, i'm just using a fraction to calculate it, which also gives me the correct answer :)

Thanks anyway.
try67
Expert
Registered: Oct 30 2008
Posts: 2399
It's not math.PI, it's Math.PI (notice the capital M. JavaScript is case-sensitive)

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com