I have a spreadsheet with three columns. All the numbers are in the Fahrenheit column, and the other two are filled from the functions.
Fahrenheit Celsius ComputedFahrenheit
-200
-180
-160
-140
-120
-100
-80
-60
-40
-20
0
32
40
60
80
100
120
140
160
180
200
Celsius and ComputedFahrenheit columns are populated using these functions:
function f2c(fahrenheit) {
if (typeof(fahrenheit) !== "number") {
Logger.log(typeof(fahrenheit));
throw "Fahrenheit column must contain numbers";
}
var celsius = (fahrenheit - 32) * (5/9);
return celsius;
}
function c2f (celsius) {
if (typeof (celsius) !== "number") {
throw "celsius must be a number";
}
var fahrenheit = (celsius*(9/5)) + 32;
return fahrenheit;
}
All cells display data correct, except Row 14:
40 4.444444444 Error: Loading Data ..
Note: f2c uses the Farenheit column, c2f uses the Celsius column.
I cannot see the problem!
Project Key: MESQb2p_hPY7vMP_LZjizjHo2ajWN_uqm
SDC Key: df47e1281fe5caea