summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormark <mark>2010-04-07 05:52:48 +0000
committermark <mark>2010-04-07 05:52:48 +0000
commit91e7650c03c9194ee2fee6334699203f31efa7ce (patch)
tree771a1e6d1b2549e7a4e8236f76ce5ecc6d829d9e
parentcdd6f558ad683955af4ab1a3fa6e3c4060241d9d (diff)
fix floating point error
-rw-r--r--FS/FS/pay_batch/RBC.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/pay_batch/RBC.pm b/FS/FS/pay_batch/RBC.pm
index 26ff95971..6ee5771fe 100644
--- a/FS/FS/pay_batch/RBC.pm
+++ b/FS/FS/pay_batch/RBC.pm
@@ -104,7 +104,7 @@ $name = 'RBC';
sprintf("%09u", $aba).
sprintf("%-18s", $account).
' '.
- sprintf("%010u",$cust_pay_batch->amount*100).
+ sprintf("%010.0f",$cust_pay_batch->amount*100).
' '.
time2str("%Y%j", $pay_batch->download).
sprintf("%-30s", $cust_pay_batch->cust_main->first . ' ' .
@@ -131,7 +131,7 @@ $name = 'RBC';
sprintf("%10s", $client_num).
' ' x 20 .
sprintf("%06u", $batchcount).
- sprintf("%014u", $batchtotal*100).
+ sprintf("%014.0f", $batchtotal*100).
'00' .
'000000' . # total number of customer information records
' ' x 84