set_property("manaBurningThreshold", 1.0*targetMP /my_maxmp())
looks like it will work better, otherwise you're setting it to 0. There are other, possibly better ways to convert to a float (such as to_float() for the numerator), and it's likely that 17 digits of precision isn't actually necessary.
looks like it will work better, otherwise you're setting it to 0. There are other, possibly better ways to convert to a float (such as to_float() for the numerator), and it's likely that 17 digits of precision isn't actually necessary.