There are several different styles of writing within the Bible. Much of it is literally true, but certainly not all of it. Those portions that are not literally true, do contain truth, but just not in a literal sense.
How do you tell the difference?