cppreference.com
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
View
Edit
+
History
Actions
Talk:cpp/numeric/math/modf
From cppreference.com
<
Talk:cpp
|
numeric/math
[
edit
]
Should the return value be ±∞ and not ±0?
If
x
is ±∞, ±0 is returned, and ±∞ is stored in
*
iptr
.
ticotico
(
talk
) 08:43, 2 April 2022 (PDT)
that's what F.10.3.12 says and what the f2 in the example shows (argument is negative infinity, return value negative zero). --
Cubbi
(
talk
) 19:36, 2 April 2022 (PDT)