bcdiv() bcadd() bcsub() with Php
Posted
by Pieman
on Stack Overflow
See other posts from Stack Overflow
or by Pieman
Published on 2010-06-15T12:00:16Z
Indexed on
2010/06/15
12:02 UTC
Read the original article
Hit count: 206
Will this code be 'stressful' for a server?
Or is it easy to bcdiv/sub/add to 10000 decimal places?
I'm thinking of looping it afew times...
Not Sure...
$s2 = (bcdiv('1', $test, 10000));
$s = bcsub($s, $s2, 10000);
$test += 2;
$s3 = (bcdiv('1', $test, 10000));
$s = bcadd($s, $s3, 10000);
$test += 2;
Any advice? :)
© Stack Overflow or respective owner