P0091 Arithmetic Panics

Arithmetic

cannot convert float to uint; the value is negative, too large, or NaN

When this occurs

This error is triggered when: cannot convert float to uint; the value is negative, too large, or nan

Example error message

error[P0091]: cannot convert float to uint; the value is negative, too large, or NaN

How to fix

Review the error message and check your code at the indicated location. The message describes what went wrong — fix the underlying issue it identifies.

Related errors

No related errors.