Перейти к содержимому страницы
Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

Шаблон:Order of magnitude: различия между версиями

Материал из Колыбели Солнца
Add, <strong>Note</strong>, this macro will currently underflow on zero, causing an error message to be returned instead of the value 0 (zero).
м 29 версий импортировано
 
(не показано 17 промежуточных версий этого же участника)
Строка 1: Строка 1:
<includeonly>{{Ordomag/+|{{#ifexpr:{{{1}}}<0|-}}{{{1}}}}}</includeonly><noinclude>This template calculates the (decimal) order of magnitude of numbers within the ranges 10<sup>66</sup> to 10<sup>-66</sup> and -10<sup>-66</sup> to -10<sup>66</sup>.
<includeonly>{{{{{|safesubst:}}}#ifexpr:{{{1|0}}}=0
 
  |{{{{{|safesubst:}}}#ifexpr:abs{{{1|0}}}1=1
<strong>Note</strong>, this macro will currently underflow on zero, causing an error message to be returned instead of the value 0 (zero).</noinclude>
      |0
      |{{{{{|safesubst:}}}#expr:floor((ln(abs{{{1}}}1)/ln10)+1)}}
    }}
  |{{#expr:floor((ln(abs({{{1|0}}}) )/ln 10)+1E((abs{{{1|0}}}>1E100 or abs{{{1|0}}}<1E-100)-14))}}
}}</includeonly><noinclude>
{{documentation}}
</noinclude>

Текущая версия от 00:10, 13 мая 2019

Ошибка Lua: Внутренняя ошибка: Интерпретатор завершил работу со статусом 1.