web # perl -e '$a="nan"; print sprintf("%.2f",$a)' nan web # perl -v This is perl, v5.8.8 built for x86_64-linux ----- For Win32: This is perl, v5.8.4 built for MSWin32-x86-multi-thread perl -e "$a='nan'; print sprintf('%.2f',$a)" 0.00
In reply to Re^4: Q: NaN again
by kai
in thread Q: NaN again
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |