You specified a format specification that was expecting a real (that is, floating-point) number, but you provided the argument string which was not a valid real number.
Provide a valid real number in place of string.