List Commands Library for 50g

03052018, 10:31 PM
(This post was last modified: 03052018 10:34 PM by DavidM.)
Post: #268




RE: List Commands Library for 50g
(03052018 09:33 PM)John Keith Wrote: I can't see an easy and obvious solution for splitting integers, and I would be pleased as punch if these commands could just split integers. I'm guessing you meant "I can't see an easy and obvious solution for splitting reals", based on the context of the original question. Please let me know if I'm assuming incorrectly. After thinking about this some, I'm wondering if reals could be handled in a similar fashion to integers, but with the following conditions:
It seems like that may cover the majority of situations where this would be useful, and would simply throw a "Bad Argument" error if the exponent were larger than 11. Handling it this way also keeps the user from having to worry about the numeric type when the range of possible values is already known to be small enough. Still pondering the sign issue. I can't really think of a use case where preserving the sign is important, so it's difficult for me to guess at which option covers more scenarios. The extra processing for these commands will slow them down slightly, but hopefully the added convenience will outweigh any performance considerations in the long run. 

« Next Oldest  Next Newest »

User(s) browsing this thread: 3 Guest(s)