@@ -17,18 +17,18 @@ define longs_at_min_value: Sum({-1L,-2L,-9223372036854775805L}) // -922337203685
1717define longs_below_min_value: Sum({- 1L,- 2L,- 9223372036854775806L}) //-9223372036854775809
1818define decimals: Sum({1.1 ,2.2 ,3.3 ,4.4 ,5.5 })
1919define decimals_at_max_value: Sum({99999999999999999999.99999999 })
20- define decimals_above_max_value: Sum({99999999999999999999.99999999 , 99999999999999999999.99999999 })
20+ define decimals_above_max_value: Sum({99999999999999999999.99999999 , 0.00000001 })
2121define decimals_at_min_value: Sum({-99999999999999999999.99999999 })
22- define decimals_below_min_value: Sum({-99999999999999999999.99999999 , -99999999999999999999.99999999 })
22+ define decimals_below_min_value: Sum({-99999999999999999999.99999999 , -0.00000001 })
2323define quantities: Sum({1 'ml' ,2 'ml' ,3 'ml' ,4 'ml' ,5 'ml' })
2424// Max/Min-valued quantities are described using the "maximum" and "minimum" operators
2525// to avoid the translator rounding them to +/-1.0e20, which is not a legal Decimal
2626define MaxValueMLQuantity: Quantity { value: maximum Decimal , unit: 'ml' }
2727define MinValueMLQuantity: Quantity { value: minimum Decimal , unit: 'ml' }
2828define quantities_at_max_value: Sum({MaxValueMLQuantity})
29- define quantities_above_max_value: Sum({MaxValueMLQuantity, MaxValueMLQuantity })
29+ define quantities_above_max_value: Sum({MaxValueMLQuantity, 0.00000001 'ml' })
3030define quantities_at_min_value: Sum({MinValueMLQuantity})
31- define quantities_below_min_value: Sum({MinValueMLQuantity, MinValueMLQuantity })
31+ define quantities_below_min_value: Sum({MinValueMLQuantity, -0.00000001 'ml' })
3232define has_null: Sum({1 ,null ,null ,null ,2 })
3333define has_null_q: Sum({1 'ml' ,null ,null ,null ,2 'ml' })
3434define unmatched_units_q: Min({1 'ml' ,2 'm' ,3 'ml' ,4 'ml' ,5 'ml' ,0 'ml' })
0 commit comments