MC: Why different? Why not a bug?
|
04-16-2018, 02:51 AM
(This post was last modified: 04-16-2018 02:53 AM by Mark Hardman.)
Post: #2
|
|||
|
|||
RE: MC: Why different? Why not a bug?
(04-15-2018 08:59 PM)Joe Horn Wrote: The screen shot below was taken in Home view. Notice that the last two results are different. This might SEEM like a bug, but it's not. ifactor is a CAS function and its arguments are evaluated in CAS mode. Because CAS mode does not use BCD, the result of Date*10000 is internally represented as 20180414.999999880791 and ifactor(IP(Date*10000)) is evaluated as ifactor(20180414)--which results in an unexpected result. If you first evaluate IP(Date*10000) in Home, the correct BCD result of 20180415 is assigned to Ans and evaluating ifactor(20180415) returns the correct result. This is not a bug. It is simply the difference in how numbers are stored in Home vs. CAS. An excellent example of something that should be considered when using CAS commands in Home. Ceci n'est pas une signature. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
MC: Why different? Why not a bug? - Joe Horn - 04-15-2018, 08:59 PM
RE: MC: Why different? Why not a bug? - Mark Hardman - 04-16-2018 02:51 AM
RE: MC: Why different? Why not a bug? - Joe Horn - 04-16-2018, 03:33 AM
|
User(s) browsing this thread: 1 Guest(s)