Round the Float constant to avoid javascript floating precision point issues

This commit is contained in:
kijai 2025-04-02 10:43:53 +03:00
parent 18a5565b5c
commit 2aa4da0f58

View File

@ -66,7 +66,7 @@ class FloatConstant:
CATEGORY = "KJNodes/constants"
def get_value(self, value):
return (value,)
return (round(value, 6),)
class StringConstant:
@classmethod