Team:DTU-Denmark/Achievements/Calculator
From 2014.igem.org
(Difference between revisions)
Tbjohannesen (Talk | contribs) (Undo revision 376863 by Tbjohannesen (talk)) |
Tbjohannesen (Talk | contribs) |
||
Line 60: | Line 60: | ||
activity.value = Math.round(parseFloat(activity.value)*10000)/10000; | activity.value = Math.round(parseFloat(activity.value)*10000)/10000; | ||
- | if (activity.value <= 0.001 || activity.value >= 1000) { activity.value = parseFloat(activity.value).toExponential() }; | + | if (activity.value <= 0.001 || activity.value >= 1000) { activity.value = parseFloat(activity.value).toExponential(2) }; |
activity2.value = parseFloat(activity.value); | activity2.value = parseFloat(activity.value); |
Revision as of 00:46, 18 October 2014