Team:DTU-Denmark/Achievements/Calculator
From 2014.igem.org
(Difference between revisions)
Tbjohannesen (Talk | contribs) |
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; | ||
- | activity.value = parseFloat(activity.value).toExponential(); | + | if (activity.value <= 0.001 || activity.value >= 1000) { activity.value = parseFloat(activity.value).toExponential() }; |
activity2.value = parseFloat(activity.value); | activity2.value = parseFloat(activity.value); |
Revision as of 00:17, 18 October 2014