nlopess Thu Aug 31 22:12:25 2006 UTC
Modified files:
/phpdoc/en/reference/bc/functions bcmul.xml
Log:
bcmul() truncates, not rounds. (per user note)
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/bc/functions/bcmul.xml?r1=1.5&r2=1.6&diff_format=u
Index: phpdoc/en/reference/bc/functions/bcmul.xml
diff -u phpdoc/en/reference/bc/functions/bcmul.xml:1.5
phpdoc/en/reference/bc/functions/bcmul.xml:1.6
--- phpdoc/en/reference/bc/functions/bcmul.xml:1.5 Mon Jul 4 07:24:19 2005
+++ phpdoc/en/reference/bc/functions/bcmul.xml Thu Aug 31 22:12:25 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/bc.xml, last change in rev 1.2 -->
<refentry id="function.bcmul">
<refnamediv>
@@ -18,7 +18,7 @@
Multiply the <parameter>left_operand</parameter> by the
<parameter>right_operand</parameter> and returns the result. The
optional <parameter>scale</parameter> sets the number of digits
- after the decimal place in the result.
+ after the decimal place in the result (by truncating).
</para>
</refsect1>
<refsect1>
@@ -28,7 +28,7 @@
<programlisting role="php">
<![CDATA[
<?php
-echo bcmul('1.34747474747', '35', 3); // 47.162
+echo bcmul('1.34747474747', '35', 3); // 47.161
echo bcmul('2', '4'); // 8
?>
]]>