mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-09 21:04:41 +08:00
Round the Float constant to avoid javascript floating precision point issues
This commit is contained in:
parent
18a5565b5c
commit
2aa4da0f58
@ -66,7 +66,7 @@ class FloatConstant:
|
||||
CATEGORY = "KJNodes/constants"
|
||||
|
||||
def get_value(self, value):
|
||||
return (value,)
|
||||
return (round(value, 6),)
|
||||
|
||||
class StringConstant:
|
||||
@classmethod
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user