Multiplying Decimal number with Integer data type

Hi All , I have a scenario where i have to multiply decimal data type with integer to get value and i shouldn’t roundoff integer. Can anyone tell me how i can achieve this? Example = 0.6*2000+5000 = 17000. I need answers like this  
1 answers

Hey Prajwal,


For this you can convert your integers into decimals and perform your logic and then convert your outcome back into an integer or string, or simply leave it as a decimal.


You can use the 'parse decimal' function to do this. It can be found here.


So you'd do something like this: parseDecimal(to string($yourIntegerVariable))


Hope this helps,