> I would do this a little differently. I would pass in number (real) > convert to text using commas and decimal points > build an array of each second so if you passed in and got the following string
Another option would be to use recursion, that is the one I use now, then you don’t need an array and to me it greatly simplifies the code. When you come down to it, there are many different approaches, probably as many approaches as programers have tried it, even the crappy one I wrote in high school, that was not at all elegant, worked. I personally like the recursion algorithm but there are many programmers that are not comfortable with it. Computers are really, really fast, so unless you are executing this literally millions of times any algorithm that works, works :) "No need to optimize to the femto second" (quote from Thomas Maul I think) Neil ********************************************************************** 4D Internet Users Group (4D iNUG) New Forum: https://discuss.4D.com Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

