From 5232fbdec277de3cf3851a914890907d95e57706 Mon Sep 17 00:00:00 2001 From: Lennart Weller Date: Sun, 17 Mar 2013 00:37:31 +0100 Subject: use built-in to_string --- src/web.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/web.vala') diff --git a/src/web.vala b/src/web.vala index 7823d35..2731386 100644 --- a/src/web.vala +++ b/src/web.vala @@ -440,8 +440,8 @@ public class WebServer { string table = ""; foreach(var e in db.get_stock()) { - table += "%s%s%d%.2f€%.2f€".printf( - e.id, e.id, e.id, e.name, e.amount, e.memberprice / 100.0, e.guestprice / 100.0 + table += "%s%s%d%s€%s€".printf( + e.id, e.id, e.id, e.name, e.amount, e.memberprice.to_string(), e.guestprice.to_string() ); } -- cgit v1.2.3