Team:DTU-Denmark/Achievements/Calculator
From 2014.igem.org
(Difference between revisions)
Tbjohannesen (Talk | contribs) |
Tbjohannesen (Talk | contribs) (Undo revision 376863 by Tbjohannesen (talk)) |
||
Line 58: | Line 58: | ||
activity.value = (parseFloat(conc)/(parseFloat(CFUcount)/1e12)*(602200/(parseFloat(fold)/100)))*((parseFloat(degenvar))+(parseFloat(growthvar)))/parseFloat(copynumber.value); | activity.value = (parseFloat(conc)/(parseFloat(CFUcount)/1e12)*(602200/(parseFloat(fold)/100)))*((parseFloat(degenvar))+(parseFloat(growthvar)))/parseFloat(copynumber.value); | ||
- | + | 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() }; |
Revision as of 00:43, 18 October 2014