-
-
Notifications
You must be signed in to change notification settings - Fork 110
Closed
Description
Version: 3.1.4
Bug Description
Double in database is returned as string.
Steps To Reproduce
Double with a lot of zeros is returned as string (f.e. 0.000074601974431321)
(float)0.000074601974431321 -> 7.4601974431321e-5
$row[$key] = (string) $float === $value ? $float : $value;
// FALSE, return string -> Helpers->normalizeRow() row 210
Expected Behavior
Return float
Possible Solution
$row[$key] = preg_match("/^-{0,1}\d+\.\d+$/", $value) === 1 ? $float : $value;
Metadata
Metadata
Assignees
Labels
No labels