Extract numbers before decimal point

Hii,

Can anybody let me know,
How to get the numbers before decimal.
Suppose i have 330.5743
Expected output is 330.

Pls help ASAP!!

@Doonline ,

You could Simply Try using Math.Truncate()

Math.Truncate(330.5743)

Hi,

FYI, another solution:

System.Text.RegularExpressions.Regex.Match("330.5743","\d+").Value

Regards,

Hi

We can use a simple split method like this

If the input is in variable named str_input

Then use a assign activity like this

stroutput = Split(str_input.ToString, “.”)(0).ToString

Cheers @Doonline