display substring of a service response
Hei all,
i stuck at format the content of a label in a better readable form. The situation is:
I show the datas of a service response in a grid. The mapping of the values to the columns works fine. And now i will do some lift up to make things easier for the user. So the actual text for example 7.43789567 should be cut after 7.43. In this case 2 digit after the dot is okay no math needed to round in a mathematical correct way. I tried parseInt, substring and parseFloat as advised from Katya but all i get is nothing or NaN.
So please if anyone could provide a script sample which i could use in js area of the response mapping instead of try pasrseFloat that would be great. I tried different things over the last two days and it seems that i take a look only from one point of view.
Thanks
Mathias