OxL Reference

method f64.min

The smaller of the two values (the other one if one of them is NaN).

Example:

oxl✓ checked in CI
fn main() io {
  let x: f64 = 2.5
  print("{x.min(1.5)}")
}
Output
1.5
pub(api) fn min(o: f64) -> f64

Complexity. O(1).

Since. 1.0.0-beta

Parameters

NameType
of64

Returns

f64

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/numbers.oxl:4150

See also