List Commands Library for 50g

09092017, 01:28 PM
Post: #134




RE: List Commands Library for 50g
(08252017 09:07 PM)DavidM Wrote: I just checked a couple of builtin list commands (SUB and GET), and it looks like they both perform a rounding function on the arguments instead of taking the integer part (likely due to COERCE being used to convert those reals into System Binary Integers). For example:I think rounding is more appropriate. Consider the case where where some calculation is used to compute the index. If the calculation results in an index of 0.999999999 or 1.000000001, the result of GET should probably be the same. On the other hand, I can't recall a single instance in decades of programming where I've needed complex calculations to compute an index that would result in needing rounding. 

« Next Oldest  Next Newest »

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