Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

How do I shorten a decimal value so I can update a form?

$
0
0

Trying to insert a value into a json / OData script:

            var new_TaxPercentage = result_timesheet.new_TaxTypePercentage;

            Xrm.Page.getAttribute("new_taxpercentage").setValue(parseFloat(eval(new_TaxPercentage.new_Float)));

The correct value is retrieved but the decimal point is greater: 20.000000000, and I want to insert into a field that has 1 decimal place. Any ideas?


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>