Talk:Chemical calculator: Difference between revisions

m
Thundergnat moved page Talk:Chemical Calculator to Talk:Chemical calculator: Follow normal task title capitalization policy
m (Thundergnat moved page Talk:Chemical Calculator to Talk:Chemical calculator: Follow normal task title capitalization policy)
 
(2 intermediate revisions by one other user not shown)
Line 44:
== precision of atomic masses ==
Since the atomic masses for some elements are expressed in greater precision,   shouldn't the computer programming solutions reflect that?   Most languages (at this time) aren't using enough arithmetic precision to give a precise result   (in particular, the formula that contains sodium).   Also, shouldn't the   '''assert'''   in the Rosetta Code task preamble be updated   (with greater precision)   for   '''sodium sulfate'''?     -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 22:09, 27 March 2019 (UTC)
 
:There is almost never a good reason to use the equality operator with floating point numbers. Especially in '''assert'''. Moreover, the mass of a compound is only as accurate as the least accurate component, so there is no point in dealing with arbitrary precision. Anyway, "usual" floating point numbers have nowadays 17 digits of precision. It's much more than the most accurate atomic mass. [[User:Eoraptor|Eoraptor]] ([[User talk:Eoraptor|talk]]) 19:35, 1 April 2019 (UTC)
 
:: I wasn't referring to strangeness of how some languages represent floating point numbers   (those that aren't stored in decimal, but in some form of a binary format).   REXX (and maybe PL/I), for instance, use   ''decimal''   floating point numbers.   Also, because the REXX entry uses a more precise (accurate) table of atomic mass, the results would be correct, but not agree with the asserts.     -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 16:53, 1 September 2019 (UTC)
 
 
== atoms ==
 
Never trust an atom,   they make up everything.     -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 22:37, 22 June 2020 (UTC)
10,327

edits