nadam / nfc-reader

Simple NFC Reader for Android
903 stars 354 forks source link

Value of Tag ID (dec) is not correct #35

Closed headshot9x closed 1 year ago

headshot9x commented 2 years ago

When I scanned card with Tag ID (DEC) begin with number "0", app can not show it because mistake. So, kindly checking again. Sample: Tag ID (DEC) is " 0123456789", but when scan it, app just show Tag ID (Dec) is "123456789"

jasti99 commented 2 years ago

When I scanned card with Tag ID (DEC) begin with number "0", app can not show it because mistake. So, kindly checking again. Sample: Tag ID (DEC) is " 5501439057", but when scan it, app just show Tag ID (Dec) is '5501439057"

nadam commented 1 year ago

The decimal number 123456789 is the same as 0123456789. Leading zeros don't change the value. Same thing with trailing zeroes at the end of a decimal number.