diff options
author | Thomas White <taw@physics.org> | 2009-11-25 11:38:29 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2009-11-25 11:38:29 +0100 |
commit | 5278c19ddcaaee2c229080f1ca24371e4772b1d4 (patch) | |
tree | 4fce38894cd92fad29cb4d5508e74ec39733f09f /src | |
parent | 55bfd90ee7d198b319105068c81d0b7f6bb24f5f (diff) |
Use rint() instead of nearbyint()
There's no difference as far as we're concerned
Diffstat (limited to 'src')
-rw-r--r-- | src/diffraction.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/diffraction.c b/src/diffraction.c index 07749ac7..1c7e589a 100644 --- a/src/diffraction.c +++ b/src/diffraction.c @@ -89,9 +89,9 @@ static double complex molecule_factor(struct molecule *mol, struct threevec q, hd = q.u * ax + q.v * ay + q.w * az; kd = q.u * bx + q.v * by + q.w * bz; ld = q.u * cx + q.v * cy + q.w * cz; - h = (signed int)nearbyint(hd); - k = (signed int)nearbyint(kd); - l = (signed int)nearbyint(ld); + h = (signed int)rint(hd); + k = (signed int)rint(kd); + l = (signed int)rint(ld); r = get_integral(mol->reflections, h, k, l); |