Just brainstorming here, but if you add format the float in a 2 decimal string then replace "." with "" and reconvert the string to an integer you might be able to get the right kind of comparison results. like 2.05 and 2.10 would turn into 205 and 210 In which case using max would give you the latter as the larger of the two.
In the case of 2.05a and 2.05c then you'd prolly have to see which string is the larger of the two. I'd use a simple "IF a > b then print b else print a" kind of statement or the comp function to compare the 2 strings. Hope this helps Dimitris Wed, Mar 25, 2009 at 7:36 PM, Rob <sourceforge-raind...@kudla.org> wrote: > On Wednesday 25 March 2009 13:54, M0E.lnx wrote: > > I guess I would have thoutht there was something that could analize > > something like "2.12" and "2.5" as floats and see which one is the > > largest of the 2 > > Well, the problem with that is that 2.5 really is the larger of the two if > you treat them as floats, but is the earlier version number in the > numbering schemes that are currently in fashion. > > Rob > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user