Host introspection: Difference between revisions

Content added Content deleted
(Nimrod -> Nim)
Line 542: Line 542:
</lang>
</lang>


=={{header|Nimrod}}==
=={{header|Nim}}==
<lang nimrod>import math
<lang nim>import math
echo cpuEndian
echo cpuEndian
echo round(log2(float(int.high))) + 1</lang>
echo round(log2(float(int.high))) + 1</lang>