CSS Testing

For a little thing I’m making…

dollarParser = function () {
    var input:Number = 1234567.5644;
    var inputString:String = input.toString();
    
    var decimalIndex:Number = inputString.indexOf('.');
    var centString:String = inputString.substring(decimalIndex, decimalIndex+3);
    var dollarString:String = inputString.substring(0, decimalIndex);
    trace(dollarString);
}

dollarParser = function () {
    var input:Number = 1234567.5644;
    var inputString:String = input.toString();
    
    var decimalIndex:Number = inputString.indexOf('.');
    var centString:String = inputString.substring(decimalIndex, decimalIndex+3);
    var dollarString:String = inputString.substring(0, decimalIndex);
    trace(dollarString);
}

dollarParser = function () {
    var input:Number = 1234567.5644;
    var inputString:String = input.toString();
    
    var decimalIndex:Number = inputString.indexOf('.');
    var centString:String = inputString.substring(decimalIndex, decimalIndex+3);
    var dollarString:String = inputString.substring(0, decimalIndex);
    trace(dollarString);
}

dollarParser = function () {
    var input:Number = 1234567.5644;
    var inputString:String = input.toString();
    
    var decimalIndex:Number = inputString.indexOf('.');
    var centString:String = inputString.substring(decimalIndex, decimalIndex+3);
    var dollarString:String = inputString.substring(0, decimalIndex);
    trace(dollarString);
}

Long enough? Yep…