mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-02 04:40:29 +02:00
1;3202;0cMerge remote-tracking branch 'origin/stable-2.0'
This commit is contained in:
commit
e0f68f785d
2 changed files with 7 additions and 3 deletions
|
@ -8906,7 +8906,8 @@ SCM_PRIMITIVE_GENERIC (scm_angle, "angle", 1, 0, 0,
|
|||
}
|
||||
else if (SCM_REALP (z))
|
||||
{
|
||||
if (SCM_REAL_VALUE (z) >= 0)
|
||||
double x = SCM_REAL_VALUE (z);
|
||||
if (x > 0.0 || double_is_non_negative_zero (x))
|
||||
return flo0;
|
||||
else
|
||||
return scm_from_double (atan2 (0.0, -1.0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue