Rely on toDouble returning 0 on failure.