tuned success rate output of Mirabelle's sledgehammer action
authordesharna
Tue, 04 Mar 2025 10:15:29 +0100
changeset 82233 3e972fc58373
parent 82232 067dac998c59
child 82234 eee83daed0d7
tuned success rate output of Mirabelle's sledgehammer action
src/HOL/Tools/Mirabelle/mirabelle_sledgehammer.ML
--- a/src/HOL/Tools/Mirabelle/mirabelle_sledgehammer.ML	Tue Mar 04 09:55:11 2025 +0100
+++ b/src/HOL/Tools/Mirabelle/mirabelle_sledgehammer.ML	Tue Mar 04 10:15:29 2025 +0100
@@ -94,7 +94,7 @@
 
 val str = string_of_int
 val str3 = Real.fmt (StringCvt.FIX (SOME 3))
-fun percentage a b = string_of_int (a * 100 div b)
+fun percentage a b = Real.fmt (StringCvt.FIX (SOME 1)) (Real.fromInt (a * 100) / Real.fromInt b)
 fun ms t = Real.fromInt t / 1000.0
 fun avg_time t n =
   if n > 0 then (Real.fromInt t / 1000.0) / Real.fromInt n else 0.0