Login Register


Need help with float values filter_list
Author
Message
Need help with float values #1
I'm dealing with huge numbers, which far exceed integer values. I'm having trouble figuring out exactly how to use floats. If you can help then please add my skype.

skype: opie_son


Thanks!


RE: Need help with float values #2
what programming language are you using. If you use python then python can handle very large integer values. Please give some example of what exactly is your requirement.
[Image: OilyCostlyEwe.gif]


RE: Need help with float values #3
(09-20-2013, 03:34 PM)Jacob Wrote: I'm dealing with huge numbers, which far exceed integer values. I'm having trouble figuring out exactly how to use floats. If you can help then please add my skype.

skype: opie_son


Thanks!

How big? Do you care about performance?


RE: Need help with float values #4
You can try these functions. Quite useful. It use string to represent large number.

Code:
<?php $a = '24564641435345463424254686854646363636252525265768588'; $b = '54625264243535545453452321175765353454424568693422525'; var_dump(bcadd($a, $b)); // $a + $b, return string var_dump(bcsub($a, $b)); // $a - $b, return string var_dump(bcmul($a, $b)); // $a * $b, return string var_dump(bcdiv($b, $a)); // $b / $a, return string ?>


RE: Need help with float values #5
Marked solved and closed at the request of @Jacob
If you need help feel free to PM me
[Image: klfpJD]
Probitcoin
Freebitcoin
BTC clicks
bitcoin wallet:
1FBPAanbs3rJU9BUpobpDJc9hHUaCaC25N








Users browsing this thread: 1 Guest(s)