Error 500 when loading part: RoundingNecessaryException
Created by: tbnobody
Describe the bug I edited a existing part and added a second vendor. If I now open the part again I get an error 500. The log file shows the following:
[2021-06-03T11:23:17.602415+02:00] request.CRITICAL: Uncaught PHP Exception Twig\Error\RuntimeError: "An exception has been thrown during the rendering of a template ("Rounding is necessary to represent the result of the operation at this scale.")." at /var/www/partdb/templates/Parts/info/_main_infos.html.twig line 51 {"exception":"[object] (Twig\\Error\\RuntimeError(code: 0): An exception has been thrown during the rendering of a template (\"Rounding is necessary to represent the result of the operation at this scale.\"). at /var/www/partdb/templates/Parts/info/_main_infos.html.twig:51)\n[previous exception] [object] (Brick\\Math\\Exception\\RoundingNecessaryException(code: 0): Rounding is necessary to represent the result of the operation at this scale. at /var/www/partdb/vendor/brick/math/src/Exception/RoundingNecessaryException.php:19)"} []