method f64.max
The larger of the two values (the other one if one of them is NaN).
Example:
fn main() io {
let x: f64 = 2.5
print("{x.max(1.5)}")
}Вывод
2.5
pub(api) fn max(o: f64) -> f64Сложность. O(1).
С версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
o | f64 |
Возвращает
f64
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/core/numbers.oxl:4165