frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Unify a display for real numbers

Open jkotan opened this issue 2 years ago • 0 comments

Summary

Currently in the tree view, negative floating-point numbers are displayed in the scientific notation (e.g. -1e-01) while positive floating-point numbers are displayed in the decimal notation (e.g. 0.1). We received complains from our user that it is not readable, especially a numbers like -1e+0 where e+0 could be easily omitted.

Steps to Reproduce

Ingest a negative and positive floating-point numbers in scientific metadata e.g.

treeview_frontend

Current Behaviour

Negative floating-point numbers are differently displayed than positive floating-point numbers

Expected Behaviour

There are a few options:

  1. display both negative and positive floating-point numbers in the decimal notation or in the scientific notation
  2. add a configuration switch between the decimal notation and in the scientific notation display
  3. display floating-point numbers near by one value in the decimal notation e.g. -0.01 while floating-point numbers faraway from one value e.g. 6.022140857e+23 in the scientific notation

I would say that the option 3) looks for me for the the best one.

jkotan avatar Nov 24 '22 08:11 jkotan