HP Forums
Como converter números decimais ou fracionados em inteiros no HP30b? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: Como converter números decimais ou fracionados em inteiros no HP30b? (/thread-16100.html)



Como converter números decimais ou fracionados em inteiros no HP30b? - FabioBrasil - 12-31-2020 07:43 PM

On the HP30b, is it possible to enter non-integer P / YR values and thus not get an ERROR message? At HP, is there any way to convert decimal or fractional numbers to whole numbers (C / YR and P / YR)?

Currently, I find interest rates equivalent, either by a program on the HP30b, or by the traditional method. Is there a possibility to do this without a program?

Example: I have the rate 1.8% bimonthly (2 months) and I want the equivalent effective rate for quarter (3 months).

With the program I do:
1.8 I / YR 3 INPUT 2 ÷ N SHIFT PRGM =

Or manually:
1.8 I / YR PV = 1 N = 1 FV =? (= -1,0002) 2 INPUT 3 ÷ N I / YR =?

Answer: 2.7%

Sorry for the question and errors in English (I use Google Translate), but I'm starting on the HP30b. Still thanks and happy holidays!


RE: Como converter números decimais ou fracionados em inteiros no HP30b? - rprosperi - 12-31-2020 10:34 PM

Do you have the Owner's Manual for your 30b?

There is a copy you can download here:

https://literature.hpcalc.org/official/hp20b30b-ug-en.pdf


RE: Como converter números decimais ou fracionados em inteiros no HP30b? - Albert Chan - 01-01-2021 12:24 AM

1.8% bi-monthly rate to quarterly (3-months) effective rate:

1.018 ^ (3/2) = 1.027121138             // effective quarterly rate = 2.7121138%


RE: Como converter números decimais ou fracionados em inteiros no HP30b? - ijabbott - 01-01-2021 01:58 PM

One way to do it manually is to pretend that 1.8% is an annual rate compounded yearly for 6 years, then determine the interest rate that would produce the same future value in 4 years:

Code:
1 SHIFT P/YR
6 N
1.8 I/YR 
1 PV
0 PMT
FV            [FV = -1.11297822601]
4 N
I/YR          [I/YR = 2.71211379381]



RE: Como converter números decimais ou fracionados em inteiros no HP30b? - Albert Chan - 01-01-2021 11:39 PM

(01-01-2021 01:58 PM)ijabbott Wrote:  One way to do it manually is to pretend that 1.8% is an annual rate compounded yearly for 6 years, then determine the interest rate that would produce the same future value in 4 years

No need to pretend: (I/Yr) ÷ (P/Yr) = I/P

By setting P/Yr = 1, whatever entered into I/Yr is I/P (interest rate per period).

So, the code can also interpret as first getting APY (FV = -1.11297822601 → APY ≈ 11.2978%),
then convert to quarterly rate (I/P ≈ 2.7121%, P = 3 months)

(12-31-2020 07:43 PM)FabioBrasil Wrote:  On the HP30b, is it possible to enter non-integer P / YR values and thus not get an ERROR message?

This also answered OP question.

Example: P/Yr = 3.14, I/Yr = 6% is equivalent to P/Yr = 1, I/P = I/Yr = 6%/3.14


RE: Como converter números decimais ou fracionados em inteiros no HP30b? - FabioBrasil - 01-08-2021 09:00 PM

Thank you all