From c9afa0a749c4cb4cb329aaad11b8c489e1ed48b7 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 2 Feb 1995 18:15:35 +0000 Subject: [PATCH] Corretto 0.0 in ZERO git-svn-id: svn://10.65.10.50/trunk@957 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/pagament.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cg/pagament.cpp b/cg/pagament.cpp index 20e5c7fd0..bf14faad6 100755 --- a/cg/pagament.cpp +++ b/cg/pagament.cpp @@ -260,7 +260,7 @@ TToken_string& Pagamento::set_rata(int index, real howmuch, TDate oldd = index > 0 ? data_rata(index -1) : _inizio; int day = date - oldd; real toshare(_tpr == 0 ? _firstr : _secndr); - real perc = (_tpr > 0 && index == 0) ? 0.0 : howmuch/toshare; + real perc = (_tpr > 0 && index == 0) ? ZERO : howmuch/toshare; perc *= real(100.0); perc.round(2);