# Constants

The following constants are available for your convenience in writing expressions.

## Infinity

Represents a value greater than any other number. -Infinity may also be used as a value smaller than any number.

##### Example

Calculates the maximum of four field values

var values = [ $feature.field1,$feature.field2, $feature.field3,$feature.field4 ];
var maxValue = -Infinity;

for(var i in values){
maxValue = IIF(values[i] > maxValue, values[i], maxValue);
}

return maxValue;

## PI

The value of a circle's circumference divided by its diameter, approximately 3.14159.

##### Example

Returns the area of a circle feature

## TextFormatting.DoubleQuote

Inserts a double quote character " into the text.

##### Example

Returns 'Nicholas "Nick" Anderson'