Hi , I have a decimal variable value in assign , I need to convert it as empty.
How to convert it as empty from decimal variable value , can anyone guide me please?
Thanks,
Ashnitha T
Hi , I have a decimal variable value in assign , I need to convert it as empty.
How to convert it as empty from decimal variable value , can anyone guide me please?
Thanks,
Ashnitha T
Hi @jamunatj ,
Could you maybe explain a bit more in detail as to what you want to perform ?
Hi @jamunatj,
The default value of Double and Int32 is 0 so not able to convert Empty or null
Thanks,
Hey
Please provide and example input and expected output so we can help you better
Regards
Thanks for the response @supermanPunch
I am extracting the value from PDF if the corresponding fields present & extracted value store into the decimal variable. If the fields not present in the PDF means I am getting the decimal variable value default as Zero.
I need to convert Zero value as empty but Decimal variable not accepting string.empty
How to handle this, Can someone guide me please?
Thanks,
Ashnitha
HI @jamunatj
You cant convert decimal value as empty
Instead what you do is
Create another string variable and use assign
StringVariable =
if(Decimalvariable.Tostring.Equals("0"),"",DecimalVariable.Tostring)
And you can use this string variable where ever you need
Regards
Sudharsan
You could change the type from Decimal
to String
.
Is there a reason you are keeping the type strict to Decimal. When extracting data from texts/String data we keep the type as String or in some case Generic. If we keep it strict to the type we require there maybe issue like these.
We can convert it to the required type later on after the extraction.
Thanks for the Reply @supermanPunch
Yes , I am using some calculation after extracting , So that using decimal variable instead of string variable.
As you mentioned, Once calculation has been done ,I will convert it as string variable & try it,
Thanks,
Ashnitha
Thanks for the Reply @Sudharsan_Ka
I will try as you mentioned.
Thanks,
Ashnitha