mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-04-16 19:39:36 +00:00
Use big E for si value formatting output
This commit is contained in:
parent
29db029d69
commit
766665f9e5
1 changed files with 2 additions and 1 deletions
|
|
@ -124,7 +124,8 @@ final class PartsDataTable implements DataTableTypeInterface
|
|||
'render' => function ($value, Part $context): string {
|
||||
$siValue = SiValueSort::sqliteSiValue($context->getName());
|
||||
if ($siValue !== null) {
|
||||
return htmlspecialchars(sprintf('%g', $siValue));
|
||||
//Output it as scientific number with a big E
|
||||
return htmlspecialchars(sprintf('%G', $siValue));
|
||||
}
|
||||
return '';
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue