integer can hold only upto 8 bits...where as a string can hold more than 8 bits...so to compare them...is der any function???
like my code is like this
for(int i=0;i<= stringgg("12345678901234567890"); i++)
An int is 4 bytes which is 32 bits (31 of which is value and the 32nd is a pos/neg toggle). A long is 8 bytes (63 bits data and 1 pos/neg toggle) so use long and parse that String to a long using Long.parseLong(string). If a long is also … Read More
Like I said, though, "-1" says that s1 (which is the lesser number the first time, but the greater number the second time) is [i]less[/i] than s2, whereby s1 is significantly [i]greater[/i] than s2 the second time, [i]not[/i] less than s2 as "-1" indicates. What I am saying, is that … Read More
[QUOTE=koolhoney07;823458] for(i=0;i< String (1234455....upto >=500 digits);i++)[/QUOTE] This is insane. Even with a 19 digit number (long precision), and running 1 million loops per second, it will take more than a hundred thousand years to complete. At about 24 digits it will take a time greater than the lifetime of the … Read More
Edited by mike_2000_17: Fixed formatting