Path: utzoo!utgpu!watserv1!watmath!att!bellcore!rutgers!uwm.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpcc01!hpcuhb!hpsqf!hpqtdla!jdg From: jdg@hpqtdla.HP.COM (James Gentles) Newsgroups: comp.sys.handhelds Subject: Re: formatted output Message-ID: <1270019@hpqtdla.HP.COM> Date: 14 Jun 90 10:50:50 GMT References: <735@ncrwat.Waterloo.NCR.COM> Organization: HP, Queensferry Telecomms, Scotland Lines: 39 Your formatter sounds very good, how about a simpler idea if you havent thought of it already. When you try to get a 'nice' output you can set the 28's MODE to STD,FIX etc for the best results but that means that all output adopts that format. The following simple program allows you to "FIX" a number to a string in any format, whilst the 28 remains in the format it started in. NFMT (short for number format) << RCLF 3 ROLLD EVAL ->STR SWAP STOF >> For example (28 in STD mode) Stack on entry: 2: 1.8888888888 1: <<4 FIX>> NFMT Stack on exit: 1: "1.8888" You can put anything in the program in level 1 of the stack, DEC or OCT for example. Granted this system is a lot simpler that an all encompasing formatter, but it should improve your output Regards James --------------------------------------------------------------------- I have no professional connection with Hewlett-Packard's calculator operations other than as a user of their products. --------------------------------------------------------------------- Opinions expressed are my own, and are not intended to be an official statement by Hewlett-Packard Company --------------------------------------------------------------------- Name: James Gentles GM4WZP Organization: Hewlett-Packard Queensferry Telecomunications Division Email: jdg@hpqtdla.hpsqf.hp.com hp-sdd Address: Station Road, South Queensferry, West Lothian, Scotland ---------------------------------------------------------------------