From 1eb9088ae76ba758cd3e7e3039623c466cd29372 Mon Sep 17 00:00:00 2001 From: Makyen Date: Fri, 29 Sep 2023 09:51:59 -0700 Subject: [PATCH] Show three digits after the decimal point for flagging conditions preview --- app/views/flag_conditions/_preview.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/flag_conditions/_preview.html.erb b/app/views/flag_conditions/_preview.html.erb index 36fee89e..aaa500f1 100644 --- a/app/views/flag_conditions/_preview.html.erb +++ b/app/views/flag_conditions/_preview.html.erb @@ -1,5 +1,5 @@ <% if @true_positive_count.present? and @false_positive_count.present? %> -

<%= number_to_percentage(@true_positive_count.to_f * 100.0 / (@true_positive_count + @false_positive_count).to_f, precision: 2) %>

+

<%= number_to_percentage(@true_positive_count.to_f * 100.0 / (@true_positive_count + @false_positive_count).to_f, precision: 3) %>

True positives