string str; float flo; default { state_entry() { str = "0.01"; flo = (float)str; } } //gives compile-time error ... [2:31] Primitive: Error compiling script: Line number 7, Error Number: CS0030, 'Cannot convert type `string' to `double''