use localized decimals and fix #76166
Merge pull request #77371 from mauk81/patch-2

use localized decimals and fix #76166