Incorrect Interpretation of “Supplier Device” Package Value as Number
Description: When entering parameters from the information sources into Digi-Key, the “Supplier Device” package value is interpreted as a number and thus entered under Type. This results in a 0603 resistor being recorded as 603. Examples can be seen in the following images:
- Image 1: 10k Ohm
- Image 2: 390 Ohm (Package 1206 right but also in the column for numbers)
- Image 3: 100k Ohm
- Image 4: 10k Ohm
This issue does not occur with “Package / Case,” where the value is correctly entered as text (see Image 5 for the 10k Ohm resistor).
I couldn’t pinpoint the exact cause of the error, but I suspect it might be related to how the value is interpreted. For instance, in Python, converting the string “0603” to an integer ignores the leading zero, resulting in “603” without throwing an error. A similar behavior might be occurring here (see Image 6 for a Python example).
Steps to Reproduce:
- Enter parameters from the information sources into Digi-Key.
- Observe how the “Supplier Device” package value is interpreted as a number and entered under Type.
Expected Behavior: The “Supplier Device” package value should be interpreted as text and entered correctly without ignoring the leading zero.
Screenshots:
- Image 1: 10k Ohm
- Image 2: 390 Ohm
- Image 3: 100k Ohm
- Image 4: 10k Ohm
- Image 5: 10k Ohm (Package / Case correctly entered as text)
- Image 6: Python example
Additional Information: I am not familiar with PHP, but in Python, converting the string “0603” to an integer ignores the leading zero. This might be a similar cause for the error.
Image 1
Image 2
Image 3
Image 4
Image 5
Image 6