How to convert float to sortable integer in Python
robert
no-spam at no-spam-no-spam.invalid
Tue Jan 16 06:34:30 EST 2007
shellon wrote:
> Hi all:
> I want to convert the float number to sortable integer, like the
> function float2rawInt() in java, but I don't know the internal
> expression of float, appreciate your help!
>
float comparision works well enough for sorting in Python. What is
the actual requirement?
see also hash() and id() for keying.
Robert
More information about the Python-list
mailing list