# from David Golden
# on Monday 20 April 2009 14:29:
>(a) how someone should convert from a numeric versions to vX.Y.Z
>without screwing up their ascending sequence
perl -Mversion -E 'say version->new("1.13")->normal'
>(b) how to compare vX.Y.Z to a legacy X.YYZZ
You mean X.YYY.Z -- it's always 3 columns.
>Those will still need heuristics, documentation and a big stick.
Rules are not really heuristics if they raise the probability of a
solution to 100%. At least, it's just misleading to call an
algorithm "heuristic" at that point.
How about this?
"To convert from a float to a tuple, insert a dot after every third
digit following the decimal point."
--Eric
--
Moving pianos is dangerous.
Moving pianos are dangerous.
Buffalo buffalo buffalo buffalo buffalo buffalo buffalo.
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------