Chemical calculator: Difference between revisions
m
→{{header|Julia}}
Line 337:
=={{header|Julia}}==
Note that Julia's 64-bit floating point gets a slightly different result for one of the assertions, hence a small change in the last example. The function uses Julia's own language parser to evaluate the compound as an arithmetic expression.
<lang julia>const H = 1.008
const He = 4.002602
Line 453:
</lang>
No assertion errors.
=={{header|Python}}==
|