Only return the fp value.
Signed-off-by: Benjamin Schultzer <benjamin@schultzer.com>
This commit is contained in:
parent
1d159b5278
commit
05762eb876
2 changed files with 6 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#[inline]
|
||||
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
|
||||
pub fn remainder(x: f64, y: f64) -> (f64, i32) {
|
||||
super::remquo(x, y)
|
||||
pub fn remainder(x: f64, y: f64) -> f64 {
|
||||
let (result, _) = super::remquo(x, y);
|
||||
result
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
#[inline]
|
||||
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
|
||||
pub fn remainderf(x: f32, y: f32) -> (f32, i32) {
|
||||
super::remquof(x, y)
|
||||
pub fn remainderf(x: f32, y: f32) -> f32 {
|
||||
let (result, _) = super::remquof(x, y);
|
||||
result
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue