Commit 570d7d45ee791c9b5ae29e6025f253decae3cac4

Authored by Benjamin Renard
1 parent 6139c32c

Add option to select scientific format for floating fields (#6566)

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 {
... ...