(12C) Fractional Part Function
01-03-2020, 05:34 AM (This post was last modified: 01-03-2020 05:43 AM by Gamo.)
Post: #1
 Gamo Senior Member Posts: 711 Joined: Dec 2016
(12C) Fractional Part Function
The HP-55 doesn't have FRAC and INT funtions and I'm happen to see some
program example from HP-55 User's Manual that program the fractional
part routine in program.

Try this Fractional Part routine and it work as expected on HP-12C
Since this type of problem still exist on some programmble calculator that doesn't have
didn' t know any good solution yet, until now.

This FRAC functions routine only work on "Positive Integer"

Example: FIX 9

2 [√X] display 1.414213562

[R/S] display 0.414213562
--------------------------------
355 [ENTER] 113 [÷] display 3.141592920

[R/S] display 0.141592920

Program: FRAC function
Quote:01 ENTER
02 ENTER
03 EEX
04 9
05 +
06 LSTx
07 -
08 1
09 -
10 -
11 1
12 X≤Y
13 GTO 16
14 Rv // Roll Down
15 GTO 00
16 -

Remark: Program line 03 to 07 by itself canbe use as INT function.

Gamo 1/3/2020
 « 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)