JimG makes a very good point, although we have to be careful not to see the Bible as homogeneous in its intent. Some of it is intended to be correct scientifically (or at least to use the latest scientific knowledge) while other parts are obviously meant to be more like a religious story or long parable (most people would probably put Jonah and Job in that last category).
But we must always remember that this question is part of something much larger. St Paul says: “Jews demand signs and Greeks look for wisdom, but we preach Christ crucified: a stumbling block to Jews and foolishness to Gentiles, but to those whom God has called, both Jews and Greeks, Christ the power of God and the wisdom of God. For the foolishness of God is wiser than human wisdom, and the weakness of God is stronger than human strength.”
The Holy Spirit that guided the very ordinary people who wrote the Bible allowed their human failings to show. While there is great wisdom and moral power in the Bible, the Holy Spirit made no attempt to change the historical, grammatical, and scientific misunderstanding of these ordinary people. Many of those errors are so egregious that many great philosophers, including St. Augustine (for the first part of his life) struggled with the Bible.
Provided that your remember that ‘God’s folly is greater than human wisdom’ and that ‘God chose the foolish to shame the wise’ and that the fact that a ‘book’ was divinely inspired does not mean that we should read it out of the context it was written for, we can find and learn from many scientific ‘mistakes’ in the Bible. A moral story (with a wonderful sense of humor that can be understood by even young children) like Jonah should not be confused as being historical.
For what a divinely inspired author gets wrong (and right) about science can tell us a lot about the intent and the knowledge of the author and those to whom he is writing. When God describes how He created the world when He chastises Job is one of the greatest works of literature in the whole Bible. It is also very fascinating in the insight that it gives into what the culture of that time thought about how the world was structured. There is some evidence that Matthew uses astrological terms (which includes some small amount of science merged with a huge heaping of nonsense) to describe the movement of the Star of Bethlehem. When Jesus talks about light leaving the eye (as opposed to entering it) it tells us something about Jesus the man (assuming that is an original saying of Jesus and not something inspired by the Holy Spirit later).
If you have the right attitude, there is much that you can learn from the scientific mistakes in the Bible (as well as the historical and grammatical ones).
We must always remember that in all of salvation history God has systematically shown his power and wisdom through the hands and lips of the weak and foolish. Whether Moses, Abraham, Jonah, Jeremiah, Mary, Peter, or Paul, all were weak, foolish or both. We should not fear scientific mistakes in the Bible (nor try to sweep them away); rather we should remember the words of Paul: ‘But God chose the foolish things of the world to shame the wise;’