137
rated 0 times
[
138]
[
1]
/ answers: 1 / hits: 22199
/ 13 Years ago, wed, june 15, 2011, 12:00:00
How do I reverse the digits of a number using bitwise?
input:
x = 123;
output:
x = 321;
How Do this?
More From » javascript
How do I reverse the digits of a number using bitwise?
input:
x = 123;
output:
x = 321;
How Do this?
If you wanted to make a simple reversal:
var x = 123;
var y = x.toString();
var z = y.split().reverse().join();
var aa = Number(z);
document.write(aa);
http://jsfiddle.net/jasongennaro/gV39e/