no fraction mark in the output of an hp49G+



#10

On the hp49G+ I like to convert a binary to real:

# 11111000b B->R then I got
248,
I like to have there
248
without ",".
I allready changed flag 105, set the mode to std and tried many other flags.
Who can help?

Thanks a lot.

Benny


#11

Do you want "256." or "256," or "256" ?

If you want "256.", clear flag 51. Set flag 51 for "256,". If you want "256" then that is an integer not a real. Run R->I to get a zint.

TW


#12

Thanks Tim,

I need 248


The R->I does the job.
The funniest thing is that I loaded the same flags (with RCLF and STOF) from my HP4GX into my HP49G+ and I do not have the problem on that(hp48GX) machine.

Kind regards,
Benny


#13

The HP-48 does not distinguish between "real" and "integer" -- I assume the convention of showing reals like "248," even when their fractional part is zero, is something that was added in the 49.

- Thomas


#14

Hi Thomas,

The HP48GX gives the answer I need, but giving the same command to the HP49G+ responds in the value followed by the unwanted fraction mark.
The HP48G advanced users guide however describes the B->R command as Binary to REAL, the result is affected by the mode FIX or STD.

Kind regards,

Benny


#15

The difference between 248 and 248. is important on the 49G+.

248 is the exact number, "Two hundred Forty Eight".

248. is the decimal approximation.


While the mode (exact vs. approximate) is important, the difference can be illustrated by

1 divided by 3 = 1/3, the exact fraction.

1. divided by 3 = 0.3333333333, the decimal approximation.

#16

The 48 series has system flags -1 through -64 and user flags 1 through 64. The 49 series has system flags -1 through -128 and user flags 1 through 128.

"Exact" versus "approximate" modes are controlled by system flag -105; within a program, clear it for exact mode, or set it for appoximate mode. For interactive use, hold down the RightShift key while pressing the ENTER key to toggle between exact and approximate modes.

Regards,
James

Edited: 6 Mar 2006, 6:26 p.m.

#17

The 49 series lacks built-in B->I and I->B UserRPL commands, so converting between these object types are 2-step processes. You could write your own programs:

B->I
<< B->R R->I >>

I->B
<< I->R R->B >>

Regards,
James


#18

Thanks James,

That's (B->I) exactly what I added to my program last night.

Benny


Possibly Related Threads...
Thread Author Replies Views Last Post
  HP Prime program: rounding to a fraction Patrice 3 223 10-31-2013, 06:16 AM
Last Post: Joe Horn
  HP15c continued fraction for Ln(Gamma) Tom Grydeland 0 144 09-30-2013, 05:48 AM
Last Post: Tom Grydeland
  HP42s input output of programs and files aurelio 17 643 09-01-2012, 10:18 PM
Last Post: Raymond Del Tondo
  OT--APF Mark 55 Question Matt Agajanian 6 344 07-19-2012, 10:51 PM
Last Post: Matt Agajanian
  Changing radix mark on a 32E Matt Agajanian 8 369 04-07-2012, 04:59 PM
Last Post: Walter B
  HP 50g pivot output from command "rref" peacecalc 0 107 04-07-2012, 02:38 PM
Last Post: peacecalc
  Truncating to Integer & Fraction--HP-35A/21A Matt Agajanian 11 466 03-31-2012, 10:36 PM
Last Post: Matt Agajanian
  Read the letter that brought down HP CEO Mark Hurd Peter Murphy (Livermore) 4 260 12-31-2011, 11:30 AM
Last Post: David Ramsey
  Looking for TTF font for HP41 Printer Output Egan Ford 1 124 03-05-2011, 08:29 PM
Last Post: Gerson W. Barbosa
  OT: Canon X Mark I Premium Calculator Matt Kernal 12 477 01-06-2011, 07:16 AM
Last Post: Martin Pinckney

Forum Jump: