Use big E for si value formatting output

This commit is contained in:
Jan Böhmer 2026-04-15 22:48:47 +02:00
parent 29db029d69
commit 766665f9e5

View file

@ -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 '';
},