Re: HP Prime print terminal Message #5 Posted by CD Dodds on 6 Dec 2013, 10:25 p.m., in response to message #4 by cyrille de Brébisson
Hi
I decided to abandon using interger part and fraction part and just deal with it as a string.
STA1()
BEGIN
STA:=STRING(xt); //xt is real number (station)
WHILE DIM(STA)<6 DO
STA:="0"+STA //adds a 0 in front, gives 0+25 instead of +25
END;
STA:=ROTATE(STA,-HDigits-3);
STA:=STA+"+";
STA:=ROTATE(STA,HDigits+3);
END;
everything works good except I still get odd output between
-0+99.99 and 0. Should be easy enough to fix. just need some time to think about it when I'm not worn to a frazzel. thanks again for your help.
Chad
Edited: 6 Dec 2013, 10:26 p.m.
|