P0020 Arithmetic Panics

Arithmetic

cannot convert float to int; the value is too large, too small, or NaN

When this occurs

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

Example error message

error[P0020]: cannot convert float to int; the value is too large, too small, 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.