summaryrefslogtreecommitdiff
path: root/libguile/struct.c
diff options
context:
space:
mode:
authorMark H Weaver <mhw@netris.org>2012-07-28 02:45:05 -0400
committerMark H Weaver <mhw@netris.org>2012-07-28 02:45:05 -0400
commit10a97755d4a1b2034f8a131215a92c0b29000969 (patch)
treef8e12aca32316416fe700ab5782dd15a6eb74e38 /libguile/struct.c
parentabd731fff772624f54cdf69597b4cf36df9ae0e4 (diff)
downloadguile-10a97755d4a1b2034f8a131215a92c0b29000969.tar.gz
Angle of -0.0 is pi, not zero
* libguile/numbers.c (scm_angle): Check the sign of an inexact real zero, to ensure that (angle -0.0) => pi and (angle 0.0) => 0.0. * test-suite/tests/numbers.test (angle): Add tests, and increase precision of tests where the angle should be pi.
Diffstat (limited to 'libguile/struct.c')
0 files changed, 0 insertions, 0 deletions