OxL Reference

method f32.max

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

Example:

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

Complexity. O(1).

Since. 1.0.0-beta

Parameters

NameType
of32

Returns

f32

Effects

none declared (pure unless the body says otherwise)

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

See also