How would you convert string of numbers with "k" at the end

Hey Guys,

How would you guys convert a string of “13k” to “13000” or “37k” to “37000”?

divide it by 1000 then parse it as string and add the ‘K’

Can try a regex.replace

Pattern: (?<=\d+)k
And replace with 000

Try

“13k”.Replace(“k”,“000”).ToString

1 Like

Hi @Marcos_Jeremiah_Kenn_T,

Welcome to community.

You can use the replace activity.

newValue = value.ToString.replace(“k”,000")

Regards,
MY

1 Like

@MauricioArizaca-Macross

If your problem is solved , marked it as solution for future refernce.

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