def is_palindrome(value):
    """
    Check that given number is a palindrom like: 161, 2332.

    :returns: true when given number is a palindrom
    see http://en.wikipedia.org/wiki/Palindromic_number

    >>> is_palindrome(123454321)
    True
    >>> is_palindrome(1231)
    False
    """
    value = abs(value)
    digits = []
    while value > 0:
        digits.append(value % 10)
        value //= 10
    left = 0
    right = len(digits) - 1
    while left < right:
        if not digits[left] == digits[right]:
            return False
        left += 1
        right -= 1
    return True
