HP Forums
ENG Format (what looks better?) - 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: ENG Format (what looks better?) (/thread-13981.html)



ENG Format (what looks better?) - agarza - 11-11-2019 10:01 PM

I am writing RPN calculator software and have a question regarding ENG display format.

For ENG format I wrote the display function so that it always displays the actual number of decimals but on an HP calculator, the number of decimals displayed depends on the size of the mantissa and exponent.

For example, with ENG 4 what would be a "better" ENG display format for the number 0.0001234567

123.4567 E-6 (This is what I'm currently displaying, 4 decimals)
or
123.46 E-6. (HP style, 2 decimals)

I'm not sure if I explained it correctly.

Regards,


RE: ENG Format (what looks better?) - Garth Wilson - 11-12-2019 09:48 AM

HP-41 does
Code:
123.46   -06
ie, four digits after the first one, basically your second one, except that it does not display the "E".


RE: ENG Format (what looks better?) - Paul Dale - 11-12-2019 10:08 AM

The display setting is specifying the number of significant figures. It should be honoured. I.e. the second option would be my preference.


Pauli


RE: ENG Format (what looks better?) - Dave Britten - 11-12-2019 12:20 PM

I would lean toward the second option too.

Also, consider using the metric prefixes (perhaps optionally) like Casio does, so 123.46 E-6 would be displayed as 123.46μ. I always thought that was a nice feature.