Conversions between magnitudes and flux