Quote:
Originally Posted by wrecked_
I assume it'd be something like this.
Code:
new i = 26 new number[] = num_to_str( i ) new lastdigit = number[ sizeof number - 1 ]
|
Suck Method.
PHP Code:
stock get_last_num( const int )
{
return int - 10 * (int / 10);
}
I think that is correct. Just Test. I don't!!!
EDIT: Exolent method rocks!!
__________________