diff --git a/src/rustint/core.clj b/src/rustint/core.clj index 911d136..22d1cbd 100644 --- a/src/rustint/core.clj +++ b/src/rustint/core.clj @@ -2533,7 +2533,8 @@ (cond (string? arg) "%s" (int? arg) "%d" - (and (float? arg) (nil? rustf)) "%.0f" + (and (float? arg) (nil? rustf) (== (pasar-a-int arg) arg)) "%.0f" + (and (float? arg) (nil? rustf)) "%f" (and (float? arg) (not (nil? rustf))) (format "%%%sf" rustf) ) )