Multiplying Decimal number with Integer data type

0
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  
asked
1 answers
1

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,

Austin

answered