Metric Prefixes draft V 0.2

**** Update *****
This illustration is complete.
See it here

**** Update *****

V0.2 of metric prefix illustration rewrite.

Mos of the backend is complete.

There are some formatting and display decisions still to be made and the show calculation button is a placeholder. The layout has not changed much since V0.1, but more functionality has been added.



Status:

  • The illustration still loads with
    • base value of 10
    • starting prefix of kilo
    • target prefix of micro (µ)
  • The value input box is functional. The output updates when new numbers are entered and either focus leaves the input box (by clicking away) or enter is hit on the keyboard
  • There is a check on the input so only strings that javascript can coerce into a number update the display.
  • If a non-number is added, the display is not updated and the entry field reverts to the previous value.
  • Scientific notation can be used: 234×10-56 is entered as 234e-56
  • The base unit, starting prefix and ending prefix selectors function as before
  • The table along the right side showing the prefixes has been reformatted to take less space.
Next Steps
  • Primary goal: get the show calculation area functional and formatted in a way that is easy to follow.
  • Make some decisions about rounding and formatting the output so that the answers fit within the area available. Won't know how much space there is and now much rounding will be needed until the show calculations section is completed.
  • Fix the NaNx10-Infinity result when an empty field is entered in as the number
  • Find and address an "Uncaught TypeError" that is being thrown on some types of input
  • Even after reformatting the prefix table still takes up quite a bit of space. Consider making it a dropdown window so it does not dominate that whole side of the illustration.