package palindrome import ( "strconv" ) func IsDecimalPalindromeNumber(n int64) bool { if n < 0 { n = -n } s := strconv.FormatInt(n, 10) bound := (len(s) / 2) + 1 for i := 0; i < bound; i++ { if s[i] != s[len(s)-1-i] { return false } } return true }