MIN(0) != 0 in subforms

MIN(0) != 0 in subforms

I need to identify orders containing free products. To do this, I created a "Minimum" field that should contain 0 if at least one product in the order's subform has a tariff equal to 0. This would trigger a workflow to proceed with the necessary actions upon submission.

Unfortunately, today, MIN(0) is considered equal to NAN. So, for example, if we consider these tariffs: 10, 20, 0, 12, the function will return 10, and I am unable to identify free products in the subform.

Can this be fixed ?