Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^9: Anyone with XS experience willing to create a high performance data type for Perl?

by talexb (Chancellor)
on Nov 15, 2021 at 17:25 UTC ( #11138842=note: print w/replies, xml ) Need Help??


in reply to Re^8: Anyone with XS experience willing to create a high performance data type for Perl?
in thread Anyone with XS experience willing to create a high performance data type for Perl?

To me, the order of magnitude answers the question "What's the exponent?". For 99, the exponent's 1; for 100, the exponent's 2. That's it.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

  • Comment on Re^9: Anyone with XS experience willing to create a high performance data type for Perl?

Replies are listed 'Best First'.
Re^10: Anyone with XS experience willing to create a high performance data type for Perl?
by jdporter (Chancellor) on Nov 15, 2021 at 19:07 UTC

    That's a bit of a problem, assuming you're talking about scientific notation.

    99 is 9.9e1, 100 is 1e2, yet they're the same order of magnitude.

    Taking the log10 of the number is better.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11138842]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2022-01-19 00:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (54 votes). Check out past polls.

    Notices?