Chemistry · const

SUM_TOLERANCE

How far a hand-written composition may be from summing to one.

Explained in Chemistry.

const SUM_TOLERANCE = 0.000001
import { SUM_TOLERANCE } from '@driftengine/chemistry';

In depth

Generous enough for six fractions typed to three decimals, tight enough that a transposed digit is a refusal rather than a material that quietly loses half a percent of its mass on every conservation check.