[Zope] Zope (X)3 FAQ
Lennart Regebro
lennart@regebro.nu
Mon, 07 Apr 2003 16:39:50 +0200
Johan Carlsson [EasyPublisher] wrote:
> I think it should use a float instead of a string because it would make it
> easier to identify the occurrence of an older version than X.X.
Well, that's a good point. Comparing floats is always a pain though, and
while > and < works, == and != is unrealiable, and you instead have to
use abs(float - comparefloat) < 0.001 and stuff like that, and for most
cases all you want to know is if it's the current version or not.
Integers would work nice, though.