filters:{ toThousands(value) { //100,000,000 if (!value && val!=0) return '' value= value/100; var re=/(?=(?!())(d{3})+$)/g; value=(value+'').replace(re,","); return value }, tofixedThousands(value) { //10,000,000.00 if (!value && value!=0) return '' value= value/100; var re=/(d)(?=(d{3})+.)/g; value=value.toFixed(2).replace(re,"$1,"); return value }, formatW(val){//100w if(!val && val!=0) return; val=Number(val); return val/100/10000 }, formatWFixed(val){ if(!val && val!=0) return; val=Number(val); val=val/100/10000 return val.toFixed(2) // return this.toFixed(2).replace(/(d)(?=(d{3})+.)/g, '$1,'); } }