Number.ToString node returning null in Dynamo (Springs package)

I’m using the Number.ToString node from the Springs package in Dynamo, but the output is returning null instead of a string.

Setup:

  • Input (Code Block): 225.52 → connected to num

  • Input (Code Block): 1 → connected to digits

  • Output connected to a Watch node → shows null

I’ve verified that:

  • Inputs are valid numbers

  • Connections are correct

  • No list structure issues

Question:
Is this a known issue with the Springs Number.ToString node, or am I missing something in terms of input types or formatting?

Would appreciate any guidance or alternative approaches to convert numbers to strings reliably in Dynamo.

Hello welcome :wink: may be as here..

def tolist(x):
    if isinstance(x, (list, tuple, set)):
        return x
    return [x]

def n2s(n, digits=IN[1]):
    if digits is not None:
        n = round(n, digits)
    n = str(n)
    if n.endswith('.0'):
        n = n[:-2]
    return n

OUT = list(map(n2s, tolist(IN[0])))

It can also be done with OOTB nodes, but it requires some extra nodes.