Math Formula: Unintentional conversion to double

Hi,

The Math Formula node seems to convert an Int / Long to double despite just adding one to the value which should not result in a double.

Converting to Int isn’t good as the Row Filter, when filtering by Row Number / Index, requires the type long.

Best
Mike

Hi @mwiegand,

I have added your request to the existing ticket (Math Formula: Add option to also convert to Long), I can recommend you to use the expression node for now with the same syntax.

Best,
Keerthan

3 Likes

Thanks!

Dump side question … Knime positions itself as a:

low-code/no-code software that allows anyone, irrespective of experience levels, to make sense of data.

The Expression Node, which I feel comfortable to use, might not quite well resonate with that ambition. Though, that could be argued about given K-AI, some other features and the context of the Math Node this ticket established.

Nonetheless, I try top make the point by comparing the low-/ no-code ambition with Nodes like GroupBy, Row Filter etc. which are much more hands on to use.

I got the feeling, with the introduction of a few nodes like the Expression node, that in the past Knime tends more towards a “low- to more code” experience. Just my perception. Do you or others have any take on this?

Best
Mike

3 Likes

Thank you for your feedback!

I agree that the Expression Node can indeed feel like it leans towards a coding-centric approach. However, it’s also worth noting that while the Expression Node is powerful for more complex tasks, it can also handle simpler operations similar to what you’d achieve with nodes like String Manipulation, Math Formula, or Rule Engine.

Its flexibility offers a balance between users who prefer a more code-driven approach and those looking for a straightforward, no-code (low-code) solution.

Best,
Keerthan

2 Likes