Skip to content

Commit 766665f

Browse files
committed
Use big E for si value formatting output
1 parent 29db029 commit 766665f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/DataTables/PartsDataTable.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ public function configure(DataTable $dataTable, array $options): void
124124
'render' => function ($value, Part $context): string {
125125
$siValue = SiValueSort::sqliteSiValue($context->getName());
126126
if ($siValue !== null) {
127-
return htmlspecialchars(sprintf('%g', $siValue));
127+
//Output it as scientific number with a big E
128+
return htmlspecialchars(sprintf('%G', $siValue));
128129
}
129130
return '';
130131
},

0 commit comments

Comments
 (0)