FORMULA LANGUAGE
Lotus Notes/Domino treats an empty numeric field as a text field, so the formula uses @If to check for an empty latitude field.
@If( latitude = ""; 0; ( ( latitude * @Pi ) / 180 ) * 6440 )