Casio FC-200 Financial Consultant
|
12-26-2020, 11:31 PM
(This post was last modified: 12-27-2020 05:17 AM by Albert Chan.)
Post: #11
|
|||
|
|||
RE: Casio FC-200 Financial Consultant
We can make the code more compact, with sign function.
PHP Code: function sign(x) return x==0 and 0 or x/abs(x) end Update: the code had a bug, when A falls on Sunday. Shifting it to Monday fixed it, matched open-office networkdays() results. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)