Mega Code Archive

 
Categories / Perl / String
 

Print sprintf %+ 4en, $value

$value = 1234.56789; print sprintf "%+.4e\n", $value;