bpo-39218: Improve accuracy of variance calculation (GH-27960)

3 files changed