Skip to content

Commit ffb1012

Browse files
committed
Fix numeric value detection.
1 parent 4f5001b commit ffb1012

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Jobs/DataTableExportJob.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ public function handle()
9494
? (new StyleBuilder)->setFormat($column['exportFormat'])->build()
9595
: null;
9696

97+
$value = is_numeric($value) ? (float) $value : $value;
98+
9799
$cells->push(WriterEntityFactory::createCell($value, $format));
98100
}
99101
});

0 commit comments

Comments
 (0)