ipv6calc will do some format changes and calculations for you
Intention:
* This utility can be used by the IPv6 enabled initscripts for
better duplicate address detection on setup of IPv6 addresses.
WWW: http://www.deepspace6.net/projects/ipv6calc.html