Lets start with pi. I will quote Chuck Missler for this answer because his explanation is the definitive one. “The huge cast bronze basin in 1 Kings 7:23 was 10 cubits1 in diameter and its circumference was 30 cubits, which is mathematically inaccurate. Almost any schoolboy knows that the circumference of a circle is not the diameter times 3, but rather, the diameter times a well-known constant called "pi".
The real value of pi is 3.14159265358979, but is commonly approximated by 22/7.
This is assumed, by many, to be an "error" in the Old Testament record, and is often presented as a skeptical rebuttal to the "inerrancy" of the Scripture. How can we say that the Bible is inerrant when it contains such an obvious geometrically incorrect statement? How do we deal with this?
The common word for circumference is qav. Here, however, the spelling of the word for circumference, qaveh, adds a heh (h).
In the Hebrew Bible, the scribes did not alter any text which they felt had been copied incorrectly. Rather, they noted in the margin what they thought the written text should be. The written variation is called a kethiv; and the marginal annotation is called the qere.
To the ancient scribes, this was also regarded as a remez, a hint of something deeper. This appears to be the clue to treat the word as a mathematical formula.
The Hebrew alphabet is alphanumeric: each Hebrew letter also has a numerical value and can be used as a number.
The q has a value of 100; the v has a value of 6; thus, the normal spelling would yield a numerical value of 106. The addition of the h, with a value of 5, increases the numerical value to 111. This indicates an adjustment of the ratio 111/106, or 31.41509433962 cubits. Assuming that a cubit was 1.5 ft.,3 this 15-foot-wide bowl would have had a circumference of 47.12388980385 feet.
This Hebrew "code" results in 47.12264150943 feet, or an error of less than 15 thousandths of an inch! (This error is 15 times better than the 22/7 estimate that we were accustomed to using in school!) How did they accomplish this? This accuracy would seem to vastly exceed the precision of their instrumentation. How would they know this? How was it encoded into the text?”