I have 2 number
1.000,40
500,00
how to remove after comma , ?
you can try this is only a example:
BLOCK:ConstantList
value = ["1.000,40", "500,00", "12.455,98", "100,67", "520,12"]
=> VAR @constantListOutput
ENDBLOCK
add to using statements:
System
System.Linq
This is script in C#:
List<string> valores = @constantListOutput;
var valoresEnteros = valores.Select(valor => valor.Split(',')[0]).ToArray();
string resultado = string.Join(", ", valoresEnteros);
data.Logger.LogObject(resultado);
MARK @resultado
1 Like