mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
add different variants of addition
This commit is contained in:
parent
455b73e8bd
commit
fb4a796e07
9 changed files with 136 additions and 53 deletions
|
@ -36,3 +36,12 @@ pub fn pow_int_(mut base: i64, mut exp: i64) -> i64 {
|
|||
|
||||
acc
|
||||
}
|
||||
|
||||
/// Adapted from Rust's core::num module, by the Rust core team,
|
||||
/// licensed under the Apache License, version 2.0 - https://www.apache.org/licenses/LICENSE-2.0
|
||||
///
|
||||
/// Thank you, Rust core team!
|
||||
#[no_mangle]
|
||||
pub fn is_finite_(num: f64) -> bool {
|
||||
f64::is_finite(num)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue