pi

Returns the value of pi to 13 decimal places.

Syntax

pi()

Returns

A string containing the value of pi.

Example

In this example, the result of pi is "3.14159265359" (precision is software-dependent).


<field sid="piTestField">
      <label>Test pi()</label>
      <format>
         <datatype>string</datatype>
         <constraints>
            <mandatory>on</mandatory>
         </constraints>
      </format>
      <value compute="pi()"></value>
</field>