Config#

Config is the global configuration singleton that controls all precision, calculation, and table-loading settings for a Lactuca session. Changes take effect immediately for all subsequent calculations in the same Python process; call reset() to restore factory defaults.

Key setting groups:

Group

Settings

Guide

Calculation mode

calculation_mode

Calculation Modes

Decimal precision

decimals.*

Decimal Precision and Rounding

\(l_x\) interpolation

lx_interpolation ("linear" / "exponential")

lx Interpolation

Mortality placement

mortality_placement ("beginning" / "mid" / "end")

Life Insurances

Force of mortality

force_mortality_method

Force of Mortality Methods

Calendar constants

days_per_year, weeks_per_year

Numerical Precision

Date parsing

date_format

Date Utilities Guide

Tables path

tables_path

Using Actuarial Tables

Config file path

config_path (alias: path)

Configuration

Force integer ts

force_integer_ts

Last Payment Adjustment

See also

Configuration — Narrative guide to all Config settings with worked examples.