ArcticLight / JRPNMachine

Java Reverse Polish Notation Machine
2 stars 0 forks source link

Add support for reporting numbers in scientific notation. #18

Closed hawkw closed 11 years ago

hawkw commented 11 years ago

This should just be an issue of creating multiple NumberFormat/DecimalFormats plus some switches to turn them on and off. 10^2 or 10E2 you decide.

hawkw commented 11 years ago

Okay, BigDecimals will automatically report as scientific notation. If a BigDecimal is encountered then I increase to that level of precision.

hawkw commented 11 years ago

I think this should be tagged as wontfix as the functionality it requests is part of https://github.com/ArcticLight/JRPNMachine/issues/22

hawkw commented 11 years ago

Belay that, I'm going to leave this open as https://github.com/ArcticLight/JRPNMachine/issues/22 does not implement this functionality.

ArcticLight commented 11 years ago

Thought: DecimalFormat class, and we track the precision that each Value should display itself with?

hawkw commented 11 years ago

Sounds good. I'll leave this open until it's implemented - this is major beta 3 functionality IMHO.

hawkw commented 11 years ago

This will be done as soon as https://github.com/ArcticLight/JRPNMachine/issues/32 is fixed.

hawkw commented 11 years ago

When this is done, let's merge /scientific into /master and close Polonium Beta 3.

hawkw commented 11 years ago

Closed as of https://github.com/ArcticLight/JRPNMachine/commit/22c40a3b321a59b56eb1fa1c918526a227046be1, which fixed https://github.com/ArcticLight/JRPNMachine/issues/32.