- or download this
use v5.14;
use warnings;
...
say sprintf "%d", $x;
say sprintf "%d", $x + 1;
say sprintf "%d", int( $x ) + 1;
- or download this
#include <inttypes.h>
#include <stdint.h>
...
printf( "%"PRIu64"\n", (uint64_t)( x + 1 ) );
printf( "%"PRIu64"\n", (uint64_t)( (uint64_t)x + 1 ) );
}
- or download this
9007199254740992
9007199254740992
9007199254740993