reverse-int64
v1.1.3
Published
Java.lang.Long.reverse() Node.js edition
Downloads
4
Readme
Reverse Int64
Java.lang.Long.reverse() Node.js edition
Usage
The example below. Comments are returned value or outputted error message.
'use strict';
const reverseInt64 = require('reverse-int64');
reverseInt64("1"); // -9223372036854775808
reverseInt64("-9223372036854775808"); // 1
reverseInt64("a"); // Please input 64bit signed integer. value = a
reverseInt64("9223372036854775808"); // Please input 64bit signed integer. value = 9223372036854775808
reverseInt64("-9223372036854775809"); // Please input 64bit signed integer. value = -9223372036854775809
reverseInt64(1); // Please input String class. class = Number