<?php function _bin16dec($bin) { $num = intval($bin,2); if (0x8000 & $num) { $num = - (0x010000 - $num); } return $num; } $b = "1111111111111010"; echo _bin16dec($b);
You have javascript disabled. You will not be able to edit any code.