Skip to content

minimum

relationalai.semantics.std.math
minimum(left: NumberValue, right: NumberValue) -> Expression

Find the minimum of two values.

  • Expression - An Expression computing the minimum value. Returns Number if the inputs are Number, or Float if the inputs are Float.

Find minimum of two values:

>>> select(math.minimum(Product.list_price, Product.sale_price))
>>> select(math.minimum(100, Order.total))