towerops/lib/towerops_web/live/device_live
Graham McIntire 3e89045f76 fix: prevent scientific notation in sensor value display (#114)
Radio frequencies (24 GHz) were displaying as "2.42e4 MHz" instead of
"24200.0 MHz" because Float.round/2 returns a float that Phoenix
converts to scientific notation for large numbers.

Changed format_sensor_value/2 to use :erlang.float_to_binary/2 with
decimals: 1 option, which formats as a string and avoids scientific
notation.

Verified: 24200.0 now displays as "24200.0" instead of "2.42e4"

Reviewed-on: graham/towerops-web#114
2026-03-22 14:23:18 -05:00
..
form.ex fix: remove device_role_source from form params (#110) 2026-03-22 12:27:41 -05:00
form.html.heex feat: simplify device type to manual-only with 6 options (#109) 2026-03-22 11:24:53 -05:00
index.ex feat: simplify device type to manual-only with 6 options (#109) 2026-03-22 11:24:53 -05:00
index.html.heex fix-sticky-header-overlap (#60) 2026-03-17 13:21:58 -05:00
show.ex fix: prevent scientific notation in sensor value display (#114) 2026-03-22 14:23:18 -05:00
show.html.heex fix: prevent scientific notation in sensor value display (#114) 2026-03-22 14:23:18 -05:00