This breaks with PHP 7 if a locale ist set that does not use . as decimal separator as it might be rendered as 0,85 instead of 0.85 causing web upgrader to abort.
While it is true that this code fails with PHP 7 if the active locale when rendering helper_js_global is set to not have . as decimal separator this should never happen as XenForo standardizes the locale on bootstrap.