Module:Math: Difference between revisions

Jump to navigation Jump to search
can't work due to prehandling by #expr, simplify
en>Dragons flight
(problem with lost precision)
en>Dragons flight
(can't work due to prehandling by #expr, simplify)
Line 109:
local lang = mw.getContentLanguage();
local value_stringvalue = tonumber( frame.args[1] or '0' );
local value = tonumber( value_string );
local precision = tonumber( frame.args[2] or 0 );
local current_precision = z._precision( value );
Line 119 ⟶ 118:
-- some circumstances because the terminal digits will be inaccurately reported.
if order + precision >= 14 then
precision = 13 - order;
local orig_precision = z._precision( value_string );
if order + orig_precision >= 14 then
precision = 13 - order;
end
end
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu