Hello. I’ve been sort of away from Julia for a while and am wanting to get back into things, using version 1.01 (some things changed since 0.6, I see). Figured writing a simple genetic algorithm implementation for myself that would minimize math functions would do the trick (I think there’s libraries for this, already, but this is a ludic exercise) and am having a bit of an issue in order to sort of deal with the genes themselves, seeing as they are represented as strings.
I know I can write an integer and do this to obtain its binary representation as a string, and then I can reconvert it in order to, say, evaluate a function:
But I am stumped at how to do that same thing with a floating point number. This is as far as I get:
Because I know the parse function doesn’t work in that same way for floats.
Is there some straightforward way of doing this or do I have to write my own conversion function straight from scratch?
Thanks to anybody in advance for anything. Regards.