diff --git a/core/modules/views/src/Plugin/views/field/NumericField.php b/core/modules/views/src/Plugin/views/field/NumericField.php
index 8ee361729c..320f652cd1 100644
--- a/core/modules/views/src/Plugin/views/field/NumericField.php
+++ b/core/modules/views/src/Plugin/views/field/NumericField.php
@@ -170,7 +170,7 @@ public function render(ResultRow $values) {
     }

     // Use round first to avoid negative zeros.
-    $value = round($value, $precision);
+    $value = round((float) $value, $precision);
     // Test against both integer zero and float zero.
     if ($this->options['empty_zero'] && ($value === 0 || $value === 0.0)) {
       return '';
