Template:Evalint
Jump to navigation
Jump to search
{{ {{{|safesubst:}}}#ifexpr: 1000000000000 <= ({{{1}}}) and ({{{1}}}) < 1000000000000000000000000 |{{ {{{|safesubst:}}}#expr: ({{{1}}}) / 1000000000000 mod 1000000000000}}{{ {{{|safesubst:}}}padleft:{{ {{{|safesubst:}}}#expr: ({{{1}}}) mod 1000000000000}}|12|0}} |{{ {{{|safesubst:}}}#expr: {{{1}}} }} }}
EVALuates INTegers exactly up to 1E16, in a form suitable for input. Numbers between 1E16 and 1E24 are rounded. Larger results are given in scientific notation.
This template can be substituted.
- Template:Evaldemo/3
- Template:Evaldemo
- Template:Evaldemo/3
- Template:Evaldemo
- Template:Evaldemo/3
- Template:Evaldemo/3
{{subst:evalint|2*1234567890123456}} gives the wikitext 2469135780246912