Full size numbers convert to half width Numbers in jQuery / JS

A would like to convert full-width numbers (like 123) to half-width numbers (like 123). I found code to do this in PHP, but not in JS. Can anyone please help? Thank.

function fullWidthNumConvert(fullWidthNum){
    // Magic here....
    return halfWidthNum;



source to share

1 answer

All Articles