Error when parsing my .bashrc -- sytax error: operand expected (error token is " ") I have the following snippet in my .bashrc:

# Returns system load as percentage, i.e., '40' rather than '0.40)'.
function load()
{
    local SYSLOAD=$(cut -d " " -f1 /proc/loadavg | tr -d '.')
    # System load of the current host.
    echo $((10#$SYSLOAD))       # Convert to decimal.
}


When it's parsed, I get this error:
bash: 100* : syntax error: operand expected (error token is " ") but I'm not sure why?
There is no /proc/loadavg on macOS, so SYSLOAD is most probably empty (or at least not numeric).