setPattern appears to influence only the behavior of the format method, not the parse method of the NumberFormatter object.
$pattern = '#,##0';
$frmtr = NumberFormatter::create('en-US', NumberFormatter::DECIMAL);
$frmtr->setPattern($pattern);
echo $frmtr->parse('12.345');
// returns 12