title: Android two way data binding with float MutableLiveData
body: <p>I need two way data binding from EditText to MutableLiveData.
  One way work fine, from LiveData to View:</p>
  <pre><code>@BindingAdapter(&quot;app:dtm&quot;)
  fun AppCompatEditText.conversion(value: Float) {
  Log.d(&quot;DTAG&quot;,&quot;Find&quot;)
  setText(value.toString())
  }
  </code></pre>
  <p>But the other way, from EditText to MutableLiveData I cant set:</p>
  <pre><code>@InverseBindingAdapter(attribute = &quot;app:dtm&quot;, event = 
  &quot;android:textAttrChanged&quot;)
  fun AppCompatEditText.conversion(): Float {
  Log.d(&quot;DTAG&quot;,&quot;John Connor&quot;)
  return this.text.toString().toFloat()
  }
  </code></pre>
  <p>It cause loop between the two binding adapters</p>
  <p><strong>What am I doing wrong?</strong></p>
  <p>My Variable:</p>
  <pre><code>var a1CValue = MutableLiveData(7.0f)
  </code></pre>
  <p>View:</p>
  <pre><code>&lt;androidx.appcompat.widget.AppCompatEditText
              android:id=&quot;@+id/firstText&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:inputType=&quot;numberDecimal&quot;
              android:selectAllOnFocus=&quot;true&quot;
              app:dtm=&quot;@={dataModel.a1CValue}&quot;
              tools:text=&quot;1.2&quot; /&gt;
  </code></pre>