Cookies are stored as strings. Since the value of the amount is not supposed to be stored as a string, you will have to cast the string into a float before storing it into the $amount variable:
$amount = (float) WA_CookieObj.getValue("Amount");
$amount = (float) $_COOKIE["Amount"];
Those should both work.