Site icon Hip-Hop Website Design and Development

Warning: A non-numeric worth encountered?

Hello everybody after transferring my website to a different internet hosting I get this error: (php 7.4 on each hosts)
"Warning: A non-numeric value encountered in /htdocs/example.com/wp-content/themes/themename/woocommerce/taxonomy-product_cat.php on line 159"

the code on line 159 is the next:

     $low cost = spherical (intval($sale_price  / $regular_price ) * floatval (100));

the place am i incorrect?

Thanks for assist me