Bcadd

1 réponse
Avatar
Sid-ahmed Djellali
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.

1 réponse

Avatar
Mickaël Wolff
On 19/10/11 21:44, Sid-ahmed Djellali wrote:
Hi,



Hi, this is a French speaking forum, please speak in this language.


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 ?


But, ...

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

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



Même question.