Skip to content

Commit

Permalink
survival - use only 2 digit precision for median months
Browse files Browse the repository at this point in the history
Signed-off-by: Abeshouse, Adam A./Sloan Kettering Institute <[email protected]>
  • Loading branch information
Abeshouse, Adam A./Sloan Kettering Institute committed Feb 7, 2020
1 parent 9260441 commit ac3be17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/resultsView/survival/SurvivalUtil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function getMedian(
let median: string = 'NA';
for (let i = 0; i < estimates.length; i++) {
if (estimates[i] <= 0.5) {
median = patientSurvivals[i].months.toString();
median = patientSurvivals[i].months.toFixed(2);
break;
}
}
Expand Down

0 comments on commit ac3be17

Please sign in to comment.