- preg_match: documentation ( source)
- round: documentation ( source)
<?php
$_POST['solution'] = 068985579931598921.0;
$solution=(($_POST['solution']*1337)+1.7);
$solution=!preg_match('/[^0-9]/',''.$solution)?(int)round($solution)-33:1337;
echo $solution.' '.gettype($solution);
if($solution=='float'){
echo 'WE rock';
}
?>