From a1bc64b121dc6dc79fa3463adf44562bb316591d Mon Sep 17 00:00:00 2001 From: michaeloffner Date: Thu, 11 Jan 2024 17:31:03 +0100 Subject: [PATCH] LDEV-4780 - float to string as scientific notation --- core/src/main/java/lucee/runtime/op/Caster.java | 2 +- loader/build.xml | 2 +- loader/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/lucee/runtime/op/Caster.java b/core/src/main/java/lucee/runtime/op/Caster.java index 204b298fa5..7cca9f50f0 100755 --- a/core/src/main/java/lucee/runtime/op/Caster.java +++ b/core/src/main/java/lucee/runtime/op/Caster.java @@ -2310,7 +2310,7 @@ public static String toString(double d) { public static String toString(Number n) { if (n instanceof BigDecimal) return df.format(n); - if (n instanceof Double) return Caster.toString(n.doubleValue()); + if (n instanceof Double || n instanceof Float) return Caster.toString(n.doubleValue()); if (n instanceof Long) return Caster.toString(n.longValue()); return n.toString(); } diff --git a/loader/build.xml b/loader/build.xml index 4c43bafe73..94223b4868 100644 --- a/loader/build.xml +++ b/loader/build.xml @@ -2,7 +2,7 @@ - + diff --git a/loader/pom.xml b/loader/pom.xml index 33518d31ca..80635070fd 100644 --- a/loader/pom.xml +++ b/loader/pom.xml @@ -3,7 +3,7 @@ org.lucee lucee - 6.0.1.56-SNAPSHOT + 6.0.1.57-SNAPSHOT jar Lucee Loader Build