<div dir="ltr"><div>In a processing algorithm I have a double QgsProcessingParameterNumber where I have set the number of decimals metadata to be 20.</div><div><br></div><div>param = QgsProcessingParameterNumber(<br>            'NUMBER',<br>            tr('Number'),<br>            QgsProcessingParameterNumber.Double,<br>            defaultValue=0,<br>            optional=False)<br>        param.setMetadata({'widget_wrapper': { 'decimals': 20 }})<br>        self.addParameter(param)<br></div><div><br></div><div>In the processing popup, if I enter a number with less than 20 digits then the rest of the digits become some random number. For example if I enter</div><div><br></div><div>-0.1556640799496235 <br></div><div><br></div><div>the displayed result is</div><div><br></div><div>-0.15566407994962350170<br></div><div><br></div><div>I would think that if it pads with extra digits to fill out to 20, the digits should be 0. Have I exceeded the number of acceptable decimal digits, or is this a bug?</div><div><br></div><div>Thanks,</div><div><br></div><div>Calvin</div></div>