Convert from decimal to ones complement and signed magnitude