Hi,
Based on your description, you want to calculate Cost / Quantity . To ensure the result doesn’t round down to zero, you need to use floating-point division. Here’s how you can set up the formula in the right side of the assign
amt_per_quantity = Convert.ToDouble(Row(“cost”)) / Convert.ToDouble(Row(“quantity”))
Disable first two TotalPrice and Quantity assign activities. you already converted that rows to double in following assign.
Convert.ToDouble(Row(“cost”)) / Convert.ToDouble(Row(“quantity”))