From 90018100ec14a189c1285f2d7220a7f47f08b464 Mon Sep 17 00:00:00 2001 From: CrossNox Date: Tue, 29 Nov 2022 11:11:01 -0300 Subject: [PATCH] fix convertir formato --- src/rustint/core.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) ) )