Fix format specifier for error message

Fixes "TypeError: float argument required, not str"

Change-Id: I29caa6076ed712c1fb109ea42e4e5daf2cb7c133