I have the following code to retrieve the result.
var _label:Number = (data.ask - data.bid) * 10000;
this.text = String(_label.toFixed(0));
I would like to know what to add in order to retrieve the first 2 numbers from the left only for the results. e.g.,:
1234756.21354 > 12
75484.014 > 75
You can use .substr(), .slice() or .substring() methods:
For adding
.(dot) between, try this: