ghewgill / hp15c

HP-15C calculator simulator
http://hp15c.com
Other
59 stars 20 forks source link

insert comma for sci and eng formats #20

Open pvezid opened 4 months ago

pvezid commented 4 months ago

When changing from '.' to ',' as decimal separator, this was working only for the "fix" format and not for the "sci" nor the "eng" formats. To fix that, it seems that "s=insert_comma(s);" should be called just before the "return s;" statement in the format_sci and format_eng functions. I did not test this extensively (only on the IOS simulator) but that should fix the issue. Thanks a lot for this HP15C simulator, I am using it a lot !