We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4c140f commit 29d521eCopy full SHA for 29d521e
src/misc.rs
@@ -5,6 +5,10 @@ pub mod misc_functions {
5
use crate::{if_list_convert_to_vec_float_and_do, if_list_do_int_or_do_float};
6
use rhai::{Array, Dynamic, EvalAltResult, Position, FLOAT};
7
8
+ /// Infinity
9
+ #[allow(non_upper_case_globals)]
10
+ pub const inf: FLOAT = FLOAT::INFINITY;
11
+
12
/// Returns a random number between zero and one.
13
/// ```typescript
14
/// let r = rand();
0 commit comments