Death is really just an extension of God in Pi's mind. Throughout the novel, Pi makes his belief in and love of God clear—it is a love profound enough that he can transcend the classical divisions of religion, and worship as a Hindu, Muslim, and Christian. Pi, although amazed by the possibility of lacking this belief, still respects the atheist, because he sees him as a kind of believer. Pi’s vision of an atheist on his death bed makes it clear that he assumes the atheist’s form of belief is one in God, without his realizing it until the end. It is the agnostic that truly bothers Pi; the decision to doubt, to lack belief in anything, is to him inexcusable. This is underscored in that essential passage in the novel when Pi asks the Japanese officials which of his two stories they preferred—he sees no reason why they should not believe the better story.
Pi’s devotion to God is a prominent part of the novel; it becomes, however, much less prominent during his time aboard the lifeboat, when his physical needs come to dominate his spiritual ones. Pi never seems to doubt his belief in God while enduring his hardships, but he certainly focuses on it less. This in turn underscores the theme of the primacy of survival.