Number split

Hi

I have a value of 18979.987656

How do i make that the value will only be 18979.98

Hi @Ziyaad_Conrad1,

try this,

math.Round(Number,2)

here Number variable β€”> of type Double having input value & 2 represents no. of decimals.
this will round value with 2 decimals and output be β€”> 18979.99

OR

If you don’t want round up the value, then you can try following regex pattern, to get output β€”> 18979.98

System.Text.RegularExpressions.Regex.Match(Number.ToString,"\d*\.\d{2}").Value

3 Likes