Discussion:
Bcadd
(trop ancien pour répondre)
Sid-ahmed Djellali
2011-10-19 19:44:09 UTC
Permalink
Hi,

I have a issue with bcadd function.

<?php
$time = time();
echo bcadd($time,'0.02', 3);
?>

Work !!!
But, ...

<?php
$time = microtime(true);
echo bcadd($time,'0.02', 3);
?>

Doesn't work !!
The results is "0.020".

Could you please help me !!
Thank you.
Mickaël Wolff
2011-10-19 22:23:41 UTC
Permalink
Post by Sid-ahmed Djellali
Hi,
Hi, this is a French speaking forum, please speak in this language.
Post by Sid-ahmed Djellali
I have a issue with bcadd function.
<?php
$time = time();
echo bcadd($time,'0.02', 3);
?>
Work !!!
Quel est le résultat attendu ? Quel est le résultat obtenu ?
Post by Sid-ahmed Djellali
But, ...
<?php
$time = microtime(true);
echo bcadd($time,'0.02', 3);
?>
Doesn't work !!
The results is "0.020".
Même question.

Continuer la lecture sur narkive:
Loading...