From 2aa4da0f587f68c1c255b0152ed8f5c334ebe4b4 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Wed, 2 Apr 2025 10:43:53 +0300 Subject: [PATCH] Round the Float constant to avoid javascript floating precision point issues --- nodes/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/nodes.py b/nodes/nodes.py index 719ae40..2c1d178 100644 --- a/nodes/nodes.py +++ b/nodes/nodes.py @@ -66,7 +66,7 @@ class FloatConstant: CATEGORY = "KJNodes/constants" def get_value(self, value): - return (value,) + return (round(value, 6),) class StringConstant: @classmethod