Shorten code to split magnitude and remainder