[Python-checkins] r71701 - in python/branches/py3k: Lib/test/test_float.py Misc/NEWS Objects/floatobject.c

Hirokazu Yamamoto ocean-city at m2.ccsnet.ne.jp
Sat Apr 18 15:07:50 CEST 2009


mark.dickinson wrote:
> Author: mark.dickinson
> Date: Sat Apr 18 13:48:33 2009
> New Revision: 71701
> 
> Log:
> Issue #1869 (and 4707, 5118, 5473, 1456775):  use the new
> string <-> float conversion routines to make round(x, n) correctly
> rounded for floats x, so that it always agrees with format(x, '.<n>f').
> 
> Also fix some other round nuisances, like round(123.456, 1-2**31) giving
> an integer rather than a float.

I got linker error "round() cannot be resolved" on VC6(Windows). I 
cannot know whether this happens on VC9 or not because buildbot is down, 
but round() seems to be added C standard in C99. Shouldn't this function 
be checked by HAVE_ROUND? Thank you.


More information about the Python-checkins mailing list