mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-23 18:49:34 +00:00
Change minimum value to negative
This commit is contained in:
parent
21e7da312c
commit
01b371c6c8
1 changed files with 1 additions and 1 deletions
|
|
@ -288,7 +288,7 @@ class LCSCProvider implements InfoProviderInterface
|
|||
} elseif (str_starts_with($attribute['paramValueEn'], '±')) {
|
||||
[$number, $unit] = ParameterDTO::splitIntoValueAndUnit(ltrim($attribute['paramValueEn'], " ±")) ?? [$attribute['paramValueEn'], null];
|
||||
if (is_numeric($number)) {
|
||||
$result[] = new ParameterDTO(name: $attribute['paramNameEn'], value_min: (float) $number, value_max: (float) $number, unit: $unit, group: null);
|
||||
$result[] = new ParameterDTO(name: $attribute['paramNameEn'], value_min: -abs((float) $number), value_max: abs((float) $number), unit: $unit, group: null);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue