See Job 38:
4 Where were you when I laid the foundations of the earth? Tell Me, if you have understanding.5 Who determined its measurements? Surely you know! Or who stretched the line upon it?.
6 To what were its foundations fastened? Or who laid its cornerstone,.
Who would think the Bible teaches that the Earth floats in space?
See Job 26:
God stretches the northern sky over empty space and hangs the earth on nothing. - Job 26:7
Of course, the purpose of all these lines in Job are to show Job his ignorance and insignificance compared to God, not to be science lessons.