(12C) Fractional Part Function
|
01-03-2020, 06:53 PM
(This post was last modified: 01-03-2020 07:53 PM by Albert Chan.)
Post: #5
|
|||
|
|||
RE: (12C) Fractional Part Function
(01-03-2020 05:34 AM)Gamo Wrote: Remark: Program line 03 to 07 by itself canbe use as INT function. I think it is more like ROUND function. We may go for FLOOR instead, remove the branching code. Quote:01 ENTER For -1E9 < v ≤ 8E9: above defined FRAC(v) as v - FLOOR(v) = v - (ROUND(v - 0.5 + 2E9) - 2E9) Example: 123.45 R/S → 0.45 123.45 CHS R/S → 0.55 |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(12C) Fractional Part Function - Gamo - 01-03-2020, 05:34 AM
RE: (12C) Fractional Part Function - Joe Horn - 01-03-2020, 06:15 AM
RE: (12C) Fractional Part Function - Gamo - 01-03-2020, 06:26 AM
RE: (12C) Fractional Part Function - Joe Horn - 01-03-2020, 02:13 PM
RE: (12C) Fractional Part Function - Albert Chan - 01-03-2020 06:53 PM
|
User(s) browsing this thread: 1 Guest(s)