How to add comma in specific place ?

Hi.

I have a table with a column that looks like this:

3455
290
55500
1201
100

I need to add comma on the 2 place counting from right to make the table look like this:

34,55
2,90
555,00
12,01
1,00

Any suggestions which node to use?

Hello @iChiban and welcome to the KNIME forum
ā€˜Math Formulaā€™ node:

$number$ * 1E-2

Or do you want to keep as text with the trailing zeros ?

ā€˜String Manipulationā€™ node:

join(
	substr($number$, 0, length($number$)-2)
	, ","
	, substr($number$, length($number$)-2, length($number$))
	)

BR

Thank you very much that exactly what I was trying to do.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.