Hello,
I wrote a small program years ago to read out our rfid badges.
Some recent cards showed up negative values.
No problem but as I need to enter the badges into another system aswell I want to normalize things.
So I switch everything from Long to uLong and all seemed fine until my eye noticed that the value is not equal afterall.
The code below displays the rfid tag and it's string variant.
Any idea how I can solve this?
output:
3397120948
3397121024.00
I wrote a small program years ago to read out our rfid badges.
Some recent cards showed up negative values.
No problem but as I need to enter the badges into another system aswell I want to normalize things.
So I switch everything from Long to uLong and all seemed fine until my eye noticed that the value is not equal afterall.
The code below displays the rfid tag and it's string variant.
Any idea how I can solve this?
B4X:
Dim b() As ULong
Dim tag As String
b=bc.ulongsFromBytes(UID)
rfidTag=b(0)
Log(rfidTag)
tag=rfidTag
Log(tag)
output:
3397120948
3397121024.00