SHARE
TWEET

MIN Literal Integer PHP and Python

slevy1 Jun 1st, 2013 33 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. define("PHP_INT_MIN",-PHP_INT_MAX-1);
  3.  
  4. // or alternatively:
  5. // define("PHP_INT_MIN",~PHP_INT_MAX-1);               
  6.  
  7. print is_int( -2147483648 ); // FALSE   on 32bit platform
  8. --------------------
  9. #python:
  10. print isinstance( -2147483648, (int))   // TRUE
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top