From 578151615c9d4cc6c6e90d3a25523ca127063d15 Mon Sep 17 00:00:00 2001 From: michaeloffner Date: Thu, 12 Dec 2024 11:40:32 +0100 Subject: [PATCH] set precisemath default to false --- core/src/main/java/lucee/runtime/config/ConfigImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/lucee/runtime/config/ConfigImpl.java b/core/src/main/java/lucee/runtime/config/ConfigImpl.java index 7ad145738c..a8a45d5472 100755 --- a/core/src/main/java/lucee/runtime/config/ConfigImpl.java +++ b/core/src/main/java/lucee/runtime/config/ConfigImpl.java @@ -6106,12 +6106,12 @@ public boolean getPreciseMath() { if (preciseMath == null) { synchronized (SystemUtil.createToken("ConfigImpl", "getPreciseMath")) { if (preciseMath == null) { - boolean pm = true; + boolean pm = false; String str = ConfigFactoryImpl.getAttr(root, "preciseMath"); if (StringUtil.isEmpty(str, true)) str = SystemUtil.getSystemPropOrEnvVar("lucee.precise.math", null); if (!StringUtil.isEmpty(str, true)) { - pm = Caster.toBooleanValue(str, true); + pm = Caster.toBooleanValue(str, false); } preciseMath = pm; }