Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Is what you want available?

by Arunbear (Prior)
on Jun 09, 2017 at 11:55 UTC ( #1192422=note: print w/replies, xml ) Need Help??


in reply to Is what you want available?

Commifying has been done more thoroughly. This handles long numbers correctly but doesn't work with input like "1234th". But it's designed to work with numbers so no surprise it won't handle a string as input. OTOH I would not expect a module called Util::Number to handle string data such as "1234th".

Rounding has also been done more thoroughly i.e. Math::Round

"pretty_number" is quite a vague name that doesn't give any clues about what it actually does.

Replies are listed 'Best First'.
Re^2: Is what you want available?
by Lady_Aleena (Curate) on Jun 10, 2017 at 04:23 UTC

    I think we a bit of a terminology problem. Ordinal numbers are numbers. So all of these current modules are a bit misnamed themselves. It appears they only handle integers and decimals. It is a shame they all left off ordinal numbers. Also, if you think pretty_number is hard to figure, how would most people know what CLDR::Number is? I had to run to Google to find out what CLDR meant. That was the first time I had ever seen that abbreviation.

    Math::Round looks a bit overcomplicated.

    Thanks for stopping by!

    No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
    Lady Aleena
      I think we a bit of a terminology problem. Ordinal numbers are numbers.

      They are, but not in the sense that you mean.

      So all of these current modules are a bit misnamed themselves. It appears they only handle integers and decimals.

      None of them expect to handle alphabetical string input (or AFAICT, complex input). That's not a misnaming, at least not on their part. Consider a chandlery called "Smith's Boatyard" which does a fine business outfitting RIBs and so on. Would you say they were misnamed because they do not cater for aircraft carriers?

      Plenty of advice has been given elsewhere in this thread for how you might handle such quirks. Don't berate a solid, working, published module just because you believe that it should cater for something for which it was never designed.

      Disclaimer: I am not the author or maintainer of any of the mentioned modules - it just riles me to see their efforts maligned for no good reason.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2019-10-18 04:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?