Skip to content

Commit

Permalink
Fixes decimal issue for printing LaTeX results after dataset evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
lukbukkit committed Mar 14, 2024
1 parent 2e3c1ae commit d4b6d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AnalyzeCells/analyze_cells2.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def n(value: int):

def p(value: int, max: int):
percentage = float(value) / float(max)
one_decimal = "{:.1f}".format(percentage)
one_decimal = "{:.1f}".format(percentage * 100.0)
return f'\\SI{{{one_decimal}}}{{\\percent}}'

total_cells = untrusted_cells + suspicious_cells + trusted_cells
Expand Down

0 comments on commit d4b6d65

Please sign in to comment.