type_mel/f64.rs
1/// Return the positive infinity for `f64`.
2#[mel_function]
3pub fn infinity() -> f64 {
4 f64::INFINITY
5}
6
7/// Return the negative infinity for `f64`.
8#[mel_function]
9pub fn neg_infinity() -> f64 {
10 f64::NEG_INFINITY
11}
12
13/// Return the not-a-number value for `f64`.
14#[mel_function]
15pub fn nan() -> f64 {
16 f64::NAN
17}
18
19use melodium_core::*;
20use melodium_macro::mel_function;
21
22/// Return the smallest value that can be represented by `f64`.
23///
24/// The smallest value for `f64` is `-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000`.
25#[mel_function]
26pub fn min() -> f64 {
27 f64::MIN
28}
29
30/// Return the largest value that can be represented by `f64`.
31///
32/// The largest value for `f64` is `179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000`.
33#[mel_function]
34pub fn max() -> f64 {
35 f64::MAX
36}