Aprs.TelemetryHelpers (aprs v2.0.1)

View Source

Telemetry helpers for APRS.

Summary

Functions

Parse one EQNS. coefficient, returning the string unchanged when it is not a number.

Functions

parse_coefficient(coefficient)

@spec parse_coefficient(String.t()) :: float() | String.t()

Parse one EQNS. coefficient, returning the string unchanged when it is not a number.

Examples

iex> Aprs.TelemetryHelpers.parse_coefficient("1.5")
1.5

iex> Aprs.TelemetryHelpers.parse_coefficient("abc")
"abc"