Content deleted Content added
February has 28.25 days on average. Sheer pedantry, I know. |
Attempt to fix precision, per talk page. I tested this in the sandbox with the testcases page, so I think it doesn't break anything, but revert this edit if it does. |
||
Line 357:
if I_degree_values[i] ~= -9999 then
if v_class == 1 then
p = math.max( 0, math_mod._precision( I_degree_strings[i] ) ) - 1;
M_degree_values[i] = math_mod._round( I_degree_values[i]*2.54, p );
variant[i] = v_class;
else
p = math.max( 0, math_mod._precision( I_degree_strings[i] ) ) -
M_degree_values[i] = math_mod._round( I_degree_values[i]*25.4, p );
variant[i] = v_class;
Line 370:
if M_degree_values[i] ~= -9999 then
if variant[i] == 1 then
p = math.max( 0, math_mod._precision( M_degree_strings[i] ) )
I_degree_values[i] = M_degree_values[i]/2.54;
else
p = math.max( 0, math_mod._precision( M_degree_strings[i] ) ) +
I_degree_values[i] = M_degree_values[i]/25.4;
end
|