From c5c803269c88abfe266c0e1347118e77c4825c61 Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Wed, 4 Dec 2024 15:00:21 +0100 Subject: [PATCH] Update mathematical-precision.md --- docs/recipes/mathematical-precision.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/recipes/mathematical-precision.md b/docs/recipes/mathematical-precision.md index 8fbaa5628..5f44745ec 100644 --- a/docs/recipes/mathematical-precision.md +++ b/docs/recipes/mathematical-precision.md @@ -26,6 +26,14 @@ Since version 6.0, all numbers Lucee uses in the runtime are by default BigDecim this.preciseMath = false; ``` +## Dynamically during a request + +You also simply toggle precision on or off for the current request. + +```lucee +application action="update" preciseMath="true|false"; +``` + ## System Property / Environment Variable You can also change that behavior with the system property `-Dlucee.precise.math=false` or with the environment variable `LUCEE_PRECISE_MATH=false`.