Add decimal value

I have got a value as 0 I need to add to add decimal value to zero


in which variable have you got value like datatable, array etc?
you can check if value is 0 then append .000 after value you got.

for example, variable intValue has 0 value

if intValue = 0 {
// Append it
intValue + .000

@sruthesanju - you can try with String.Format option to manage decimals…

String.Format(“{0:0.000}”, YOUR_VARIABLE)

1 Like

As an alternate:



That is absolutely incorrect. An integer doesn’t hold decimal places. Floats hold decimal places. You can’t just append .000 to an integer.