Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
long int computations
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Dave Angel, post: 4067494"] You don't make clear what you mean by "too long to convert to float." Do you mean can't convert exactly, or that they're more than 400 digits or whatever the exponent limit of float is (I'm too lazy to look it up right now) ? Assuming the latter, you could divide each by the same constant, then use your formula above to make a float version of the ratio. How to pick the constant? How about the smaller of your numbers, divided by 1e18 ? You'd have to build that number using longs as well. Alternatively, you could build your own floating point library, using longs as the mantissa. DaveA [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
long int computations
Top