Bcadd

Le
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.
Vidéos High-Tech et Jeu Vidéo
Téléchargements
Vos réponses
Gagnez chaque mois un abonnement Premium avec GNT : Inscrivez-vous !
Trier par : date / pertinence
Mickaël Wolff
Le #23884571
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.
Publicité
Poster une réponse
Anonyme