How do I create or test for NaN or infinity in Perl? -


How do I create or test NaN or infinite values ​​in Perl?

  print "is not \ n" if $ a eq 'nan'; Print "info \ n" if $ a eq 'inf' or $ a eq '-inf';  

Edit : Fixed for negative infinity.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -