Commit 570d7d45ee791c9b5ae29e6025f253decae3cac4
1 parent
6139c32c
Exists in
master
and in
62 other branches
Add option to select scientific format for floating fields (#6566)
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
src/InputOutput/IHMImpl/Params/DownloadImpl/IHMInputOutputParamsDownloadClass.php
... | ... | @@ -40,6 +40,10 @@ class IHMInputOutputParamsDownloadClass extends IHMInputOutputParamsAbstractClas |
40 | 40 | $outputsNode = $requestNode->getOutputsNode(); |
41 | 41 | $downloadNode = $outputsNode->addNewOutput(RequestOutputTypeEnum::DOWNLOAD); |
42 | 42 | |
43 | + if (isset($input->scientificformat) && $input->scientificformat) { | |
44 | + $downloadNode->setPrecision("true"); | |
45 | + } | |
46 | + | |
43 | 47 | //timeformatData : [['Y-m-dTH:i:s', 'YYYY-MM-DDThh:mm:ss'], ['DD Time', 'DD Time'], ['Timestamp', 'Timestamp']], |
44 | 48 | switch ($input->timeformat) |
45 | 49 | { | ... | ... |